summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/decl-expr-ambiguity.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-10-05 14:27:18 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-10-05 14:27:18 +0000
commit7b87f2743880efa3ab5887f403b3f391140841a6 (patch)
tree101c15ce790cb0f995b3505864f7dc6465365499 /clang/test/SemaCXX/decl-expr-ambiguity.cpp
parent8c9771bdf0d8c37483150718817618aea9db8e3d (diff)
downloadbcm5719-llvm-7b87f2743880efa3ab5887f403b3f391140841a6.tar.gz
bcm5719-llvm-7b87f2743880efa3ab5887f403b3f391140841a6.zip
Consider GNU attributes when doing ambiguity resolution.
llvm-svn: 57108
Diffstat (limited to 'clang/test/SemaCXX/decl-expr-ambiguity.cpp')
-rw-r--r--clang/test/SemaCXX/decl-expr-ambiguity.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/decl-expr-ambiguity.cpp b/clang/test/SemaCXX/decl-expr-ambiguity.cpp
index b9e824dff04..48e132097e4 100644
--- a/clang/test/SemaCXX/decl-expr-ambiguity.cpp
+++ b/clang/test/SemaCXX/decl-expr-ambiguity.cpp
@@ -17,4 +17,5 @@ void f() {
T(d)[5]; // expected-warning {{statement was disambiguated as declaration}} expected-error {{redefinition of 'd'}}
typeof(int[])(f) = { 1, 2 }; // expected-warning {{statement was disambiguated as declaration}}
void(b)(int);
+ int(d2) __attribute__(()); // expected-warning {{statement was disambiguated as declaration}}
}
OpenPOWER on IntegriCloud