blob: 20b0c7f39cc41e33e2a66c576828898d4db539aa [file] [log] [blame]
Sean Hunt7880bc32011-05-13 01:01:05 +00001// Without PCH
2// RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify -include %s %s
3// With PCH
4// RUN: %clang_cc1 -x c++-header -std=c++0x -emit-pch -o %t %s
5// RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify -include-pch %t %s
6
7#ifndef PASS1
8#define PASS1
9
10struct foo {
11 foo() = default;
12 void bar() = delete; // expected-note{{deleted here}}
13};
14
15#else
16
17foo::foo() { } // expected-error{{definition of explicitly defaulted}}
18foo f;
19void fn() {
20 f.bar(); // expected-error{{deleted function}}
21}
22
23#endif