2011-05-04 09:19:08 +08:00
|
|
|
// Test this without pch.
|
|
|
|
// RUN: %clang_cc1 -include %S/cxx0x-delegating-ctors.h -std=c++0x -fsyntax-only -verify %s
|
|
|
|
|
|
|
|
// Test with pch.
|
|
|
|
// RUN: %clang_cc1 -x c++-header -std=c++0x -emit-pch -o %t %S/cxx0x-delegating-ctors.h
|
|
|
|
// RUN: %clang_cc1 -std=c++0x -include-pch %t -fsyntax-only -verify %s
|
|
|
|
|
2011-05-04 13:57:24 +08:00
|
|
|
// Currently we can't deal with a note in the header
|
|
|
|
// XFAIL: *
|
|
|
|
|
|
|
|
foo::foo() : foo(1) { } // expected-error{{creates a delegation cycle}} \
|
|
|
|
// expected-note{{which delegates to}}
|