diff options
Diffstat (limited to 'test/Parser/namespaces.cpp')
-rw-r--r-- | test/Parser/namespaces.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/Parser/namespaces.cpp b/test/Parser/namespaces.cpp index 6491cfd..25ff73b8 100644 --- a/test/Parser/namespaces.cpp +++ b/test/Parser/namespaces.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s // PR6596 namespace g { enum { o = 0 }; } @@ -10,3 +10,7 @@ void foo() { // PR14085 namespace PR14085 {} namespace = PR14085; // expected-error {{expected identifier}} + +struct namespace_nested_in_record { + int k = ({namespace {}}); // expected-error {{statement expression not allowed at file scope}} +}; |