mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-13 17:56:06 +00:00
21 lines
300 B
C++
21 lines
300 B
C++
// RUN: clang -parse-noop -verify %s
|
|
class C {
|
|
public:
|
|
protected:
|
|
typedef int A,B;
|
|
static int sf(), u;
|
|
|
|
struct S {};
|
|
enum {};
|
|
int; // expected-error {{error: declaration does not declare anything}}
|
|
int : 1, : 2;
|
|
|
|
public:
|
|
void m() {
|
|
int l = 2;
|
|
}
|
|
|
|
private:
|
|
int x,f(),y,g();
|
|
};
|