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