aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatthew Knight <mgk1795@gmail.com>2020-05-04 23:45:31 -0700
committerMatthew Knight <mgk1795@gmail.com>2020-05-04 23:45:31 -0700
commitdb4833d4d607a91686dc37ed68e453e9538dc668 (patch)
tree20ace84a35d3c1cd3ec105ae5ddbe3e3a84da4ee /test
parentc5198bd76f96d7dab64fdd8d81fc8028187b1403 (diff)
downloadzig-db4833d4d607a91686dc37ed68e453e9538dc668.tar.gz
zig-db4833d4d607a91686dc37ed68e453e9538dc668.zip
moved duplicated code to common functions
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;