[cfe-commits] r73392 - in /cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual: p11.cpp p12.cpp p13.cpp p14.cpp p15.cpp
Daniel Dunbar
daniel at zuster.org
Mon Jun 15 10:18:42 PDT 2009
Author: ddunbar
Date: Mon Jun 15 12:18:42 2009
New Revision: 73392
URL: http://llvm.org/viewvc/llvm-project?rev=73392&view=rev
Log:
More [basic.lookup.unqual] tests.
- p13 and p14 are important failures.
Added:
cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p11.cpp
cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p12.cpp
cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p13.cpp
cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p14.cpp
cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p15.cpp
Added: cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p11.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p11.cpp?rev=73392&view=auto
==============================================================================
--- cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p11.cpp (added)
+++ cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p11.cpp Mon Jun 15 12:18:42 2009
@@ -0,0 +1,12 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+
+static const int a = 10;
+
+void f0(int a,
+ int b = a) { // expected-error {{default argument references parameter 'a'}}
+}
+
+template<int a,
+ int b = a>
+class A {
+};
Added: cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p12.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p12.cpp?rev=73392&view=auto
==============================================================================
--- cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p12.cpp (added)
+++ cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p12.cpp Mon Jun 15 12:18:42 2009
@@ -0,0 +1,13 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+
+struct S {};
+S E0;
+
+namespace {
+ enum {
+ E0 = 1,
+ E1 = E0 + 1
+ };
+}
+
+
Added: cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p13.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p13.cpp?rev=73392&view=auto
==============================================================================
--- cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p13.cpp (added)
+++ cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p13.cpp Mon Jun 15 12:18:42 2009
@@ -0,0 +1,9 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+// XFAIL
+
+struct S {
+ static const int f0 = 0;
+ static int f1;
+};
+
+int S::f1 = f0;
Added: cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p14.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p14.cpp?rev=73392&view=auto
==============================================================================
--- cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p14.cpp (added)
+++ cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p14.cpp Mon Jun 15 12:18:42 2009
@@ -0,0 +1,11 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+// XFAIL
+
+namespace N {
+ struct S {};
+ S i;
+ extern S j;
+}
+
+int i = 2;
+N::S N::j = i;
Added: cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p15.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p15.cpp?rev=73392&view=auto
==============================================================================
--- cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p15.cpp (added)
+++ cfe/trunk/test/CXX/basic/basic.lookup/basic.lookup.unqual/p15.cpp Mon Jun 15 12:18:42 2009
@@ -0,0 +1,17 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+// XFAIL
+
+class C {
+public:
+ C(int a, int b);
+};
+
+C::C(int a, // expected-note {{previous definition}}
+ int b) // expected-note {{previous definition}}
+try {
+ int c;
+
+} catch (int a) { // expected-error {{redefinition of 'a'}}
+ int b; // expected-error {{redefinition of 'b'}}
+ ++c; // expected-error {{use of undeclared identifion 'c'}}
+}
More information about the cfe-commits
mailing list