diff options
author | dim <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
commit | c86b984ea8ecb3e944dc3de48539f4c1f65851ea (patch) | |
tree | 3eb853da77d46cc77c4b017525a422f9ddb1385b /test/Parser/namespaces.cpp | |
parent | c696171ff15f0ee60dea4abfd99a135473c95656 (diff) | |
download | FreeBSD-src-c86b984ea8ecb3e944dc3de48539f4c1f65851ea.zip FreeBSD-src-c86b984ea8ecb3e944dc3de48539f4c1f65851ea.tar.gz |
Vendor import of clang RELEASE_360/rc1 tag r226102 (effectively, 3.6.0 RC1):
https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_360/rc1@226102
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}} +}; |