const char const *x10;
int x(*g);
private int cplusplus_is_not_opencl;
struct Type {
int Type;
};
typedef char bool;
namespace y {
struct a { };
typedef int b;
}
y::a a1;
y:a a2; y::a a3 = a2;
void foo() {
y: y::a s;
int a = 4;
a = a ? a : a+1;
}
struct b : y::a {};
template <typename T>
class someclass {
int bar() {
T *P;
return 1 ? P->x : P->y;
}
};
class asm_class_test {
void foo() __asm__("baz");
};
enum { fooenum = 1, };
#if __cplusplus <= 199711L
#endif
struct a {
int Type : fooenum;
};
void test(struct Type *P) {
int Type;
Type = 1 ? P->Type : Type;
Type = (y:b) 4; Type = 1 ? (
(y:b) 4) : 5;
}
struct test4 {
int x int y;
int z };
namespace Commas {
struct S {
static int a;
int c,
operator()();
};
int global1,
__attribute__(()) global2,
(global5), *global6,
&global7 = global1,
&&global8 = static_cast<int&&>(global1),
#if __cplusplus <= 199711L
#endif
S::a,
global9,
global10 = 0,
global11 == 0, global12 __attribute__(()),
global13(0),
global14[2],
global15;
void g() {
static int a,
b __asm__("ebx"), Statics:return;
}
}
struct test5 {};
::new(static_cast<void*>(0)) test5;
template<class T>
class Class1;
class Class2 {
}
typedef Class1<Class2> Type1;
struct CodeCompleteConsumer {
};
void CodeCompleteConsumer::() { }
;
void f(sqrgl);
struct S {
typedef void a() { }; typedef void c() try { } catch(...) { } int n, m;
typedef S() : n(1), m(2) { } };
namespace TestIsValidAfterTypeSpecifier {
struct s {} v;
namespace a {
struct s operator++(struct s a)
{ return a; }
}
namespace b {
struct s
operator++(struct s a)
{ return a; }
}
struct X {
struct s
friend f();
struct s
virtual f();
};
struct s
&r0 = v;
struct s
bitand r2 = v;
}
struct DIE {
void foo() {}
};
void test (DIE die, DIE *Die, DIE INT, DIE *FLOAT) {
DIE.foo(); die.foo();
DIE->foo(); Die->foo();
int.foo(); INT.foo();
float->foo(); FLOAT->foo();
}
namespace PR15017 {
template<typename T = struct X { int i; }> struct S {}; }
[[]] struct S;
#if __cplusplus <= 199711L
#else
#endif
namespace test7 {
struct Foo {
void a();
void b();
};
void Foo::
a() {}
void Foo:: }
void test8() {
struct {} o;
(&o)->(); }
namespace PR5066 {
template<typename T> struct X {};
X<int N> x;
using T = int (*T)(); #if __cplusplus <= 199711L
#endif
}
namespace PR17255 {
void foo() {
typename A::template B<> c; #if __cplusplus <= 199711L
#endif
}
}
namespace PR17567 {
struct Foobar { FooBar(); ~FooBar(); };
FooBar::FooBar() {} FooBar::~FooBar() {} }
namespace DuplicateFriend {
struct A {
friend void friend f(); friend struct B friend; #if __cplusplus >= 201103L
#endif
};
}
namespace NNS {
struct A {};
namespace B { extern A C1, C2, *C3, C4[], C5; }
A (::NNS::B::C1);
A (NNS::B::C2); A (*::NNS::B::C3); A (::NNS::B::C4[2]);
A ((::NNS::B::C5));
void f() {
A(::NNS::B::C1); A(NNS::B::C1); }
}
inline namespace ParensAroundFriend { struct A {};
struct B {
static A C();
};
namespace X {
struct B {};
struct D {
friend A (::B::C());
};
}
}
namespace rdar37099386 {
class A typename A; }
extern "" test6a { ;#if __cplusplus <= 199711L
#else
#endif
int test6b;
#if __cplusplus >= 201103L
#endif