Add test cases for 'sort_by' option

This commit is contained in:
Andreas Dinter
2020-01-26 13:26:25 +01:00
committed by Emilio Cobos Álvarez
parent f5edc2c2ab
commit 723e690027
17 changed files with 256 additions and 0 deletions
@@ -0,0 +1,12 @@
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
void A(void);
void B(void);
void C(void);
void D(void);
@@ -0,0 +1,20 @@
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
void A(void);
void B(void);
void C(void);
void D(void);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus
@@ -0,0 +1,12 @@
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
void C(void);
void B(void);
void D(void);
void A(void);
@@ -0,0 +1,20 @@
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
void C(void);
void B(void);
void D(void);
void A(void);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus
+12
View File
@@ -0,0 +1,12 @@
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
void A(void);
void B(void);
void C(void);
void D(void);
@@ -0,0 +1,20 @@
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
void A(void);
void B(void);
void C(void);
void D(void);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus
+16
View File
@@ -0,0 +1,16 @@
#include <cstdarg>
#include <cstdint>
#include <cstdlib>
#include <new>
extern "C" {
void A();
void B();
void C();
void D();
} // extern "C"
+12
View File
@@ -0,0 +1,12 @@
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
void C(void);
void B(void);
void D(void);
void A(void);
@@ -0,0 +1,20 @@
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
void C(void);
void B(void);
void D(void);
void A(void);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus
+16
View File
@@ -0,0 +1,16 @@
#include <cstdarg>
#include <cstdint>
#include <cstdlib>
#include <new>
extern "C" {
void C();
void B();
void D();
void A();
} // extern "C"
@@ -0,0 +1,12 @@
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
void A(void);
void B(void);
void C(void);
void D(void);
@@ -0,0 +1,20 @@
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
void A(void);
void B(void);
void C(void);
void D(void);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus
@@ -0,0 +1,12 @@
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
void C(void);
void B(void);
void D(void);
void A(void);
@@ -0,0 +1,20 @@
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
void C(void);
void B(void);
void D(void);
void A(void);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus
+15
View File
@@ -0,0 +1,15 @@
#[no_mangle]
pub extern "C" fn C()
{ }
#[no_mangle]
pub extern "C" fn B()
{ }
#[no_mangle]
pub extern "C" fn D()
{ }
#[no_mangle]
pub extern "C" fn A()
{ }
+15
View File
@@ -0,0 +1,15 @@
#[no_mangle]
pub extern "C" fn C()
{ }
#[no_mangle]
pub extern "C" fn B()
{ }
#[no_mangle]
pub extern "C" fn D()
{ }
#[no_mangle]
pub extern "C" fn A()
{ }
+2
View File
@@ -0,0 +1,2 @@
[fn]
sort_by = "None"