diff options
Diffstat (limited to 'test/Sema/implicit-builtin-redecl.c')
-rw-r--r-- | test/Sema/implicit-builtin-redecl.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Sema/implicit-builtin-redecl.c b/test/Sema/implicit-builtin-redecl.c index cd99b54..36513ba 100644 --- a/test/Sema/implicit-builtin-redecl.c +++ b/test/Sema/implicit-builtin-redecl.c @@ -12,3 +12,15 @@ void *calloc(int, int, int); // expected-warning{{incompatible redeclaration of void f1(void) { calloc(0, 0, 0); } + +void f2() { + int index = 1; +} + +static int index; + +int f3() { + return index << 2; +} + +typedef int rindex;
\ No newline at end of file |