1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
16 foo::foo (int i
) : i(i
) {
19 foo::foo () : foo(-1) {
22 foo::foo (int, int) : foo() {
25 foo::foo (bool) : foo(true) { // expected-error{{creates a delegation cycle}}
29 foo::foo (const float* f
) : foo(*f
) { // expected-note{{it delegates to}}
32 foo::foo (const float &f
) : foo(&f
) { //expected-error{{creates a delegation cycle}} \
33 //expected-note{{which delegates to}}
38 foo(3) { // expected-error{{must appear alone}}
41 // This should not cause an infinite loop
42 foo::foo (void*) : foo(4.0f
) {
46 ~deleted_dtor() = delete; // expected-note{{'~deleted_dtor' has been explicitly marked deleted here}}
48 deleted_dtor(int) : deleted_dtor() // expected-error{{attempt to use a deleted function}}