forked from OSchip/llvm-project
More [basic.lookup.unqual] tests.
- p13 and p14 are important failures. llvm-svn: 73392
This commit is contained in:
parent
bc34391f04
commit
e16b80cb83
|
@ -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 {
|
||||
};
|
|
@ -0,0 +1,13 @@
|
|||
// RUN: clang-cc -fsyntax-only -verify %s
|
||||
|
||||
struct S {};
|
||||
S E0;
|
||||
|
||||
namespace {
|
||||
enum {
|
||||
E0 = 1,
|
||||
E1 = E0 + 1
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -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;
|
|
@ -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;
|
|
@ -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'}}
|
||||
}
|
Loading…
Reference in New Issue