blob: 132428957f73fd8a8c485a8e08fe876dfdfc646f [file] [log] [blame]
Alexis Hunt37a477f2011-05-04 01:19:08 +00001// Test this without pch.
2// RUN: %clang_cc1 -include %S/cxx0x-delegating-ctors.h -std=c++0x -fsyntax-only -verify %s
3
4// Test with pch.
5// RUN: %clang_cc1 -x c++-header -std=c++0x -emit-pch -o %t %S/cxx0x-delegating-ctors.h
6// RUN: %clang_cc1 -std=c++0x -include-pch %t -fsyntax-only -verify %s
7
Alexis Hunt6118d662011-05-04 05:57:24 +00008// Currently we can't deal with a note in the header
9// XFAIL: *
10
11foo::foo() : foo(1) { } // expected-error{{creates a delegation cycle}} \
12 // expected-note{{which delegates to}}