Alexis Hunt | 37a477f | 2011-05-04 01:19:08 +0000 | [diff] [blame] | 1 | // 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 Hunt | 6118d66 | 2011-05-04 05:57:24 +0000 | [diff] [blame^] | 8 | // Currently we can't deal with a note in the header |
| 9 | // XFAIL: * |
| 10 | |
| 11 | foo::foo() : foo(1) { } // expected-error{{creates a delegation cycle}} \ |
| 12 | // expected-note{{which delegates to}} |