aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/run_translated_c.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/run_translated_c.zig b/test/run_translated_c.zig
index a49fef76d1..83569f1241 100644
--- a/test/run_translated_c.zig
+++ b/test/run_translated_c.zig
@@ -245,10 +245,12 @@ pub fn addCases(cases: *tests.RunTranslatedCContext) void {
, "");
cases.add("scoped typedef",
+ \\#include <stdint.h>
\\int main(int argc, char **argv) {
\\ typedef int Foo;
\\ typedef Foo Bar;
\\ typedef void (*func)(int);
+ \\ typedef uint32_t Number;
\\ Foo i;
\\ Bar j;
\\ return 0;