diff options
| author | Evan Haas <evan@lagerdata.com> | 2024-07-30 21:31:34 -0700 |
|---|---|---|
| committer | Evan Haas <evan@lagerdata.com> | 2024-07-31 09:35:07 -0700 |
| commit | 93a502cb2f5a38d0a94ebccd1be523bc71f6a00b (patch) | |
| tree | a03d5e6317e7efd646755f95d976ef819db1dbce | |
| parent | 6a103d87f650ed7cac79866033e3136433259f67 (diff) | |
| download | zig-93a502cb2f5a38d0a94ebccd1be523bc71f6a00b.tar.gz zig-93a502cb2f5a38d0a94ebccd1be523bc71f6a00b.zip | |
aro_translate_c: move simple function prototype test to manifest
| -rw-r--r-- | test/cases/translate_c/simple function prototypes.c | 8 | ||||
| -rw-r--r-- | test/translate_c.zig | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/test/cases/translate_c/simple function prototypes.c b/test/cases/translate_c/simple function prototypes.c new file mode 100644 index 0000000000..ee1e2bad32 --- /dev/null +++ b/test/cases/translate_c/simple function prototypes.c @@ -0,0 +1,8 @@ +void __attribute__((noreturn)) foo(void); +int bar(void); + +// translate-c +// c_frontend=clang,aro +// +// pub extern fn foo() noreturn; +// pub extern fn bar() c_int; diff --git a/test/translate_c.zig b/test/translate_c.zig index 772129be9b..d2ed936434 100644 --- a/test/translate_c.zig +++ b/test/translate_c.zig @@ -644,14 +644,6 @@ pub fn addCases(cases: *tests.TranslateCContext) void { \\pub export fn my_fn() linksection("NEAR,.data") void {} }); - cases.add("simple function prototypes", - \\void __attribute__((noreturn)) foo(void); - \\int bar(void); - , &[_][]const u8{ - \\pub extern fn foo() noreturn; - \\pub extern fn bar() c_int; - }); - cases.add("simple var decls", \\void foo(void) { \\ int a; |
