summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/basic/basic.link/p9.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-01-06 02:30:50 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-01-06 02:30:50 +0000
commitb3851f5ca15e7b3d0c8a272b1bd4d58bf99fedac (patch)
tree6be913a799a0e8e2f6c3c5d21711f44ea8cbf9b1 /clang/test/CXX/basic/basic.link/p9.cpp
parent06c9397665089514e4738e31f58aa2341c1a5527 (diff)
downloadbcm5719-llvm-b3851f5ca15e7b3d0c8a272b1bd4d58bf99fedac.tar.gz
bcm5719-llvm-b3851f5ca15e7b3d0c8a272b1bd4d58bf99fedac.zip
David Blaikie and Chandler would like us to diagnose
int f(); in function scopes under -Wvexing-parse, so now we do. llvm-svn: 147649
Diffstat (limited to 'clang/test/CXX/basic/basic.link/p9.cpp')
-rw-r--r--clang/test/CXX/basic/basic.link/p9.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CXX/basic/basic.link/p9.cpp b/clang/test/CXX/basic/basic.link/p9.cpp
index d8969ba1ba9..c895253c68f 100644
--- a/clang/test/CXX/basic/basic.link/p9.cpp
+++ b/clang/test/CXX/basic/basic.link/p9.cpp
@@ -6,5 +6,5 @@ namespace N { } // expected-note{{here}}
// First bullet: two names with external linkage that refer to
// different kinds of entities.
void f() {
- int N(); // expected-error{{redefinition}}
+ int N(); // expected-error{{redefinition}} expected-warning{{interpreted as a function declaration}}
}
OpenPOWER on IntegriCloud