blob: 5cd26fc31aef39dbd97204c36246d9265101e405 [file] [log] [blame]
Rafael Espindola925213b2013-07-04 16:16:58 +00001// RUN: not %clang_cc1 -fsyntax-only -fshow-overloads=best -fno-caret-diagnostics %s 2>&1 | FileCheck %s
Matt Beaumont-Gay641bd892012-11-08 20:50:02 +00002struct S {
3 S(void*);
4 S(char*);
5 S(unsigned char*);
6 S(signed char*);
7 S(unsigned short*);
8 S(signed short*);
9 S(unsigned int*);
10 S(signed int*);
11};
12void f(const S& s);
13void g() {
14 f(0);
15}
16// CHECK: {{conversion from 'int' to 'const S' is ambiguous}}
17// CHECK-NEXT: {{candidate constructor}}
18// CHECK-NEXT: {{candidate constructor}}
19// CHECK-NEXT: {{candidate constructor}}
20// CHECK-NEXT: {{candidate constructor}}
21// CHECK-NEXT: {{remaining 4 candidates omitted; pass -fshow-overloads=all to show them}}