blob: 2aff2285e1c395fb03521399cf1bf2941ddc4717 [file] [log] [blame]
Anastasia Stulova314fab62019-03-28 11:47:14 +00001// RUN: %clang_cc1 %s -pedantic -verify -fsyntax-only
2
3// Test that 'private' is not parsed as an address space qualifier
4// in regular C++ mode.
5
6struct B {
7 virtual ~B() // expected-error{{expected ';' at end of declaration list}}
8private:
9 void foo();
10 private int* i; // expected-error{{expected ':'}}
11};
12
13void bar(private int*); //expected-error{{variable has incomplete type 'void'}} expected-error{{expected expression}}