]> granicus.if.org Git - clang/commitdiff
Proof that attribute __overloadable__ works as well as overloadable
authorDouglas Gregor <dgregor@apple.com>
Tue, 17 Feb 2009 18:51:14 +0000 (18:51 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 17 Feb 2009 18:51:14 +0000 (18:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64781 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/overloadable.c

index 040b7faf7cf468342a05a32d39f73fc9e7b123f2..afac741070923820dbf2b773a42b595a1c7ba715 100644 (file)
@@ -27,7 +27,7 @@ void test_funcptr(int (*f1)(int, double),
 
 struct X { int x; float y; };
 struct Y { int x; float y; };
-int* accept_struct(struct X x) __attribute__((overloadable));
+int* accept_struct(struct X x) __attribute__((__overloadable__));
 float* accept_struct(struct Y y) __attribute__((overloadable));
 
 void test_struct(struct X x, struct Y y) {