aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/cxx-class.cpp
blob: f0b419d494eca8c0cf88d1b71b804d9abe9d9a64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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}}

public:
  void m() {
    int l = 2;
  }
  
private:
  int x,f(),y,g();
};