aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-01-04 23:04:36 +0000
committerDevang Patel <dpatel@apple.com>2010-01-04 23:04:36 +0000
commiteccea760a9563d79a5d6924bc6e5c26340507bbc (patch)
treee2d3174198eff99b3dafc9ed3b90690de7d90e9b /test/FrontendC
parent28806ab10cbc1f96a0dfb63b239f579a7eba496d (diff)
downloadexternal_llvm-eccea760a9563d79a5d6924bc6e5c26340507bbc.zip
external_llvm-eccea760a9563d79a5d6924bc6e5c26340507bbc.tar.gz
external_llvm-eccea760a9563d79a5d6924bc6e5c26340507bbc.tar.bz2
Fix debug_inlined section entries for routines whose names are changed through __asm() extension.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92533 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendC')
-rw-r--r--test/FrontendC/2010-01-05-LinkageName.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/FrontendC/2010-01-05-LinkageName.c b/test/FrontendC/2010-01-05-LinkageName.c
new file mode 100644
index 0000000..9c1a215
--- /dev/null
+++ b/test/FrontendC/2010-01-05-LinkageName.c
@@ -0,0 +1,15 @@
+// RUN: %llvmgcc -O2 -S -g %s -o - | llc -o 2010-01-05-LinkageName.s -O0
+// RUN: %compile_c 2010-01-05-LinkageName.s -o 2010-01-05-LinkageName.s
+
+struct tm {};
+long mktime(struct tm *) __asm("_mktime$UNIX2003");
+tzload(name, sp, doextend){}
+long mktime(tmp)
+ struct tm *const tmp;
+{
+ tzset();
+}
+timelocal(tmp) {
+ return mktime(tmp);
+}
+