summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/implicit-builtin-redecl.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-07-07 17:00:05 +0000
committerDouglas Gregor <dgregor@apple.com>2009-07-07 17:00:05 +0000
commit2074977695fec92e0c966d9fd85f56ababec637b (patch)
tree3fd30563f8b9e5dcaf921990b701129a5125b90f /clang/test/Sema/implicit-builtin-redecl.c
parent5723bd43d3ac3c54ce2f07f9873d7b689e477306 (diff)
downloadbcm5719-llvm-2074977695fec92e0c966d9fd85f56ababec637b.tar.gz
bcm5719-llvm-2074977695fec92e0c966d9fd85f56ababec637b.zip
Tighten up the conditions under which we build an implicit function
declaration for a builtin. llvm-svn: 74917
Diffstat (limited to 'clang/test/Sema/implicit-builtin-redecl.c')
-rw-r--r--clang/test/Sema/implicit-builtin-redecl.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Sema/implicit-builtin-redecl.c b/clang/test/Sema/implicit-builtin-redecl.c
index cd99b545531..36513bafb05 100644
--- a/clang/test/Sema/implicit-builtin-redecl.c
+++ b/clang/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
OpenPOWER on IntegriCloud