diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2009-10-15 16:31:19 +0000 |
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2009-10-15 16:31:19 +0000 |
| commit | a505eb93f43fb776fca5b1e021f93e9c05e7b53e (patch) | |
| tree | 5ac7cde31c4f9702279d2164f5266e11d3632b77 /test/CXX/dcl.dcl | |
| parent | 98781354c33bdc945ab6ea8c410d36c664ce1f5e (diff) | |
Notes
Diffstat (limited to 'test/CXX/dcl.dcl')
| -rw-r--r-- | test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p2.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p2.cpp b/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p2.cpp deleted file mode 100644 index fa3101c6736c6..0000000000000 --- a/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p2.cpp +++ /dev/null @@ -1,13 +0,0 @@ -// RUN: clang-cc -fsyntax-only -verify %s -std=c++0x -void f() { - auto a = a; // expected-error{{variable 'a' declared with 'auto' type cannot appear in its own initializer}} -} - -struct S { auto a; }; // expected-error{{'auto' not allowed in struct member}} - -void f(auto a) // expected-error{{'auto' not allowed in function prototype}} -{ - try { } catch (auto a) { } // expected-error{{'auto' not allowed in exception declaration}} -} - -template <auto a = 10> class C { }; // expected-error{{'auto' not allowed in template parameter}} |
