aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/linkage2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/linkage2.cpp')
-rw-r--r--test/SemaCXX/linkage2.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/SemaCXX/linkage2.cpp b/test/SemaCXX/linkage2.cpp
index d1d8d3a156..2cee581b49 100644
--- a/test/SemaCXX/linkage2.cpp
+++ b/test/SemaCXX/linkage2.cpp
@@ -106,3 +106,22 @@ extern "C" {
extern "C++" {
extern void test8_g();
}
+
+extern "C" {
+ void __attribute__((overloadable)) test9_f(int c); // expected-note {{previous declaration is here}}
+}
+extern "C++" {
+ void __attribute__((overloadable)) test9_f(int c); // expected-error {{declaration of 'test9_f' has a different language linkage}}
+}
+
+extern "C" {
+ void __attribute__((overloadable)) test10_f(int);
+ void __attribute__((overloadable)) test10_f(double);
+}
+
+extern "C" {
+ void test11_f() {
+ void __attribute__((overloadable)) test11_g(int);
+ void __attribute__((overloadable)) test11_g(double);
+ }
+}