summaryrefslogtreecommitdiffstats
path: root/clang/test/PCH/cxx0x-delegating-ctors.cpp
blob: 97f2f684fc29480761a9a72661e2241d72b60e9e (plain)
1
2
3
4
5
6
7
8
// 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 

foo::foo() : foo(1) { } // expected-error{{delegates to itself}}
OpenPOWER on IntegriCloud