commit | 6bec78d58b2fa73939c9cc16543c14433f004d5a | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Tue Jul 07 17:00:05 2009 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Tue Jul 07 17:00:05 2009 +0000 |
tree | d5441b443c92bb7dba48e36f93cb494aca4cd89d | |
parent | c29f77b769bcc5b6dc85e72c8e3cc2e348e5cf25 [diff] [blame] |
Tighten up the conditions under which we build an implicit function declaration for a builtin. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74917 91177308-0d34-0410-b5e6-96231b3b80d8
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 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