summaryrefslogtreecommitdiff
path: root/test/Sema/overloadable-complex.c
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@FreeBSD.org>2010-03-03 17:28:16 +0000
committerRoman Divacky <rdivacky@FreeBSD.org>2010-03-03 17:28:16 +0000
commit79ade4e028932fcb9dab15e2fb2305ca15ab0f14 (patch)
treee1a885aadfd80632f5bd70d4bd2d37e715e35a79 /test/Sema/overloadable-complex.c
parentecb7e5c8afe929ee38155db94de6b084ec32a645 (diff)
Notes
Diffstat (limited to 'test/Sema/overloadable-complex.c')
-rw-r--r--test/Sema/overloadable-complex.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/Sema/overloadable-complex.c b/test/Sema/overloadable-complex.c
index e8dbf3a6094ab..770a972232623 100644
--- a/test/Sema/overloadable-complex.c
+++ b/test/Sema/overloadable-complex.c
@@ -1,5 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
-char *foo(float) __attribute__((__overloadable__)); // expected-note 3 {{candidate function}}
+char *foo(float) __attribute__((__overloadable__));
void test_foo_1(float fv, double dv, float _Complex fc, double _Complex dc) {
char *cp1 = foo(fv);
@@ -9,20 +9,20 @@ void test_foo_1(float fv, double dv, float _Complex fc, double _Complex dc) {
char *cp4 = foo(dc);
}
-int *foo(float _Complex) __attribute__((__overloadable__)); // expected-note 3 {{candidate function}}
+int *foo(float _Complex) __attribute__((__overloadable__));
void test_foo_2(float fv, double dv, float _Complex fc, double _Complex dc) {
char *cp1 = foo(fv);
- char *cp2 = foo(dv); // expected-error{{call to 'foo' is ambiguous; candidates are:}}
+ char *cp2 = foo(dv);
int *ip = foo(fc);
- int *lp = foo(dc); // expected-error{{call to 'foo' is ambiguous; candidates are:}}
+ int *lp = foo(dc);
}
-long *foo(double _Complex) __attribute__((__overloadable__)); // expected-note {{candidate function}}
+long *foo(double _Complex) __attribute__((__overloadable__));
void test_foo_3(float fv, double dv, float _Complex fc, double _Complex dc) {
char *cp1 = foo(fv);
- char *cp2 = foo(dv); // expected-error{{call to 'foo' is ambiguous; candidates are:}}
+ char *cp2 = foo(dv);
int *ip = foo(fc);
long *lp = foo(dc);
}