blob: 753ac4736c7044d69a559cb33ec122df91c979cb [file] [log] [blame]
Alexis Hunt94f9cbf2011-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
Alexis Hunt119c10e2011-05-25 23:16:36 +000017foo::foo() { } // expected-error{{definition of explicitly defaulted default constructor}}
Alexis Hunt94f9cbf2011-05-13 01:01:05 +000018foo f;
19void fn() {
20 f.bar(); // expected-error{{deleted function}}
21}
22
23#endif