summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/mangle.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/mangle.c')
-rw-r--r--clang/test/CodeGen/mangle.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGen/mangle.c b/clang/test/CodeGen/mangle.c
new file mode 100644
index 00000000000..fbee4122d12
--- /dev/null
+++ b/clang/test/CodeGen/mangle.c
@@ -0,0 +1,9 @@
+// RUN: clang -arch i386 -emit-llvm -o %t %s &&
+// RUN: grep '@_Z2f0i' %t &&
+// RUN: grep '@_Z2f0l' %t
+
+// Make sure we mangle overloadable, even in C system headers.
+
+# 1 "somesystemheader.h" 1 3 4
+void __attribute__((__overloadable__)) f0(int a) {}
+void __attribute__((__overloadable__)) f0(long b) {}
OpenPOWER on IntegriCloud