aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20011119-2.c
diff options
context:
space:
mode:
authorJoern Rennecke <amylaar@gcc.gnu.org>2005-03-31 14:02:36 +0100
committerJoern Rennecke <amylaar@gcc.gnu.org>2005-03-31 14:02:36 +0100
commiteab92f58f68035c4360ff526bcf5d6ec52cc3f8c (patch)
tree153fade51b2b1b1c7ffec9ed3d12d7bd80b3f7fa /gcc/testsuite/gcc.c-torture/compile/20011119-2.c
parent0e5be35ba7e8ff6e5b6476774820c6c57431feb2 (diff)
downloadgcc-eab92f58f68035c4360ff526bcf5d6ec52cc3f8c.zip
gcc-eab92f58f68035c4360ff526bcf5d6ec52cc3f8c.tar.gz
gcc-eab92f58f68035c4360ff526bcf5d6ec52cc3f8c.tar.bz2
Fix fallout from PR middle-end/15700:
* gcc.c-torture/compile/20011119-1.c: Take __USER_LABEL_PREFIX__ into account. * gcc.c-torture/compile/20011119-2.c: Likewise. From-SVN: r97317
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/20011119-2.c')
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20011119-2.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/20011119-2.c b/gcc/testsuite/gcc.c-torture/compile/20011119-2.c
index ab649b9..312dee1 100644
--- a/gcc/testsuite/gcc.c-torture/compile/20011119-2.c
+++ b/gcc/testsuite/gcc.c-torture/compile/20011119-2.c
@@ -1,6 +1,10 @@
+#define ASMNAME(cname) ASMNAME2 (__USER_LABEL_PREFIX__, cname)
+#define ASMNAME2(prefix, cname) STRING (prefix) cname
+#define STRING(x) #x
+
extern inline int foo (void) { return 23; }
int bar (void) { return foo (); }
extern int foo (void) __attribute__ ((weak, alias ("xxx")));
int baz (void) { return foo (); }
-int xxx(void) __asm__("xxx");
+int xxx(void) __asm__(ASMNAME ("xxx"));
int xxx(void) { return 23; }