diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-02-20 23:09:27 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-02-20 23:09:27 +0000 |
commit | 524ed953823ee605793c93452a2f86e4a7c4a2fe (patch) | |
tree | cf986e4e374838f577de6764b22dd62a6a3ab2a0 /test/CodeGen/mangle.c | |
parent | ccef371a67756233aa97770e4fccdfa868b3e2d0 (diff) |
We must always mangle attribute overloadable functions; even if in a
system header.
- Prevents a codegen crash when anything used anything in tgmath! :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65200 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/mangle.c')
-rw-r--r-- | test/CodeGen/mangle.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/mangle.c b/test/CodeGen/mangle.c new file mode 100644 index 0000000000..fbee4122d1 --- /dev/null +++ b/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) {} |