Sean Hunt | 7880bc3 | 2011-05-13 01:01:05 +0000 | [diff] [blame^] | 1 | // 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 | |
| 10 | struct foo { |
| 11 | foo() = default; |
| 12 | void bar() = delete; // expected-note{{deleted here}} |
| 13 | }; |
| 14 | |
| 15 | #else |
| 16 | |
| 17 | foo::foo() { } // expected-error{{definition of explicitly defaulted}} |
| 18 | foo f; |
| 19 | void fn() { |
| 20 | f.bar(); // expected-error{{deleted function}} |
| 21 | } |
| 22 | |
| 23 | #endif |