diff options
author | Zack Weinberg <zackw@stanford.edu> | 2001-03-07 01:29:32 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2001-03-07 01:29:32 +0000 |
commit | 8b44d68f7b41308b3ea5b66642352c6fc8946093 (patch) | |
tree | 2f3273c6a6e24dfd21f9c03dcd116949742c1a01 /gcc | |
parent | 07ed7ecf08932be1a85498b461ca2c95e466d964 (diff) | |
download | gcc-8b44d68f7b41308b3ea5b66642352c6fc8946093.zip gcc-8b44d68f7b41308b3ea5b66642352c6fc8946093.tar.gz gcc-8b44d68f7b41308b3ea5b66642352c6fc8946093.tar.bz2 |
20000724-1.c: Don't use multiline strings.
2001-03-06 Zack Weinberg <zackw@stanford.edu>
* gcc.dg/20000724-1.c: Don't use multiline strings.
From-SVN: r40278
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/20000724-1.c | 28 |
2 files changed, 22 insertions, 10 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d0a7835..2fb4ae9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2001-03-06 Zack Weinberg <zackw@stanford.edu> + * gcc.dg/20000724-1.c: Don't use multiline strings. + +2001-03-06 Zack Weinberg <zackw@stanford.edu> + * objc/execute/string1.m, objc/execute/string2.m: Compare the result of -cString against what we expect it to be; don't just print it out for no one to read. diff --git a/gcc/testsuite/gcc.dg/20000724-1.c b/gcc/testsuite/gcc.dg/20000724-1.c index 17d2e7e..5027d6e 100644 --- a/gcc/testsuite/gcc.dg/20000724-1.c +++ b/gcc/testsuite/gcc.dg/20000724-1.c @@ -30,16 +30,24 @@ void do_check(struct s *x) abort(); } -asm (" -___checkme: - pushl %eax; pushl %ebx; pushl %ecx; pushl %edx; pushl %esi; pushl %edi; pushl $0; pushl $0 - pushl $0; pushl $0; pushl $0; pushl $0; pushl $0; pushl $0; pushl $0; pushl $0 - movl %ecx, %eax - call do_check - popl %eax; popl %eax; popl %eax; popl %eax; popl %eax; popl %eax; popl %eax; popl %eax - popl %eax; popl %eax; popl %edi; popl %esi; popl %edx; popl %ecx; popl %ebx; popl %eax - ret -"); +#define NT "\n\t" + +asm ("\n" +"___checkme:" +NT "pushl %eax; pushl %ebx; pushl %ecx; pushl %edx; pushl %esi; pushl %edi" + +NT "pushl $0; pushl $0; pushl $0; pushl $0; pushl $0" +NT "pushl $0; pushl $0; pushl $0; pushl $0; pushl $0" + +NT "movl %ecx, %eax" +NT "call do_check" + +NT "popl %eax; popl %eax; popl %eax; popl %eax; popl %eax" +NT "popl %eax; popl %eax; popl %eax; popl %eax; popl %eax" + +NT "popl %edi; popl %esi; popl %edx; popl %ecx; popl %ebx; popl %eax" +NT "ret" +); extern inline void do_asm(struct s * x) { |