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 | |||||
8 | foo::foo() : foo(1) { } // expected-error{{delegates to itself}} |