summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/decl-expr-ambiguity.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-05-16 23:40:44 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-05-16 23:40:44 +0000
commit15af3ee6a9f145332b29cb5d3d40746df17a5f07 (patch)
tree163497dc4e12d449a3343ac14a60dd76d6bd0a65 /clang/test/SemaCXX/decl-expr-ambiguity.cpp
parent678d3bac03704bb8eb200b6eaf2481d8506029cc (diff)
downloadbcm5719-llvm-15af3ee6a9f145332b29cb5d3d40746df17a5f07.tar.gz
bcm5719-llvm-15af3ee6a9f145332b29cb5d3d40746df17a5f07.zip
Make the RAII extension warning silencing for __extension__ a bit
narrower, so it doesn't catch expresions that aren't sub-expressions of __extension__ operator. llvm-svn: 71967
Diffstat (limited to 'clang/test/SemaCXX/decl-expr-ambiguity.cpp')
-rw-r--r--clang/test/SemaCXX/decl-expr-ambiguity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/decl-expr-ambiguity.cpp b/clang/test/SemaCXX/decl-expr-ambiguity.cpp
index a9275dcd1fd..bff333464b9 100644
--- a/clang/test/SemaCXX/decl-expr-ambiguity.cpp
+++ b/clang/test/SemaCXX/decl-expr-ambiguity.cpp
@@ -9,7 +9,7 @@ void f() {
T(a)->m = 7;
int(a)++; // expected-error {{expression is not assignable}}
__extension__ int(a)++; // expected-error {{expression is not assignable}}
- typeof(int)(a,5)<<a; // expected-error {{function-style cast to a builtin type can only take one argument}}
+ __typeof(int)(a,5)<<a; // expected-error {{function-style cast to a builtin type can only take one argument}}
void(a), ++a; // expected-warning {{expression result unused}}
if (int(a)+1) {}
for (int(a)+1;;) {}
OpenPOWER on IntegriCloud