diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-02 23:49:45 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-02 23:49:45 +0000 |
commit | efbe600ec9bf2d1847441969a6f0ca6d10c51ea7 (patch) | |
tree | 6f47d15496d0c5ff8d25acd1c69deaf37c24d9ed /gcc/testsuite | |
parent | f856974485b4f1ec1dfc4bc850091dd447c1c008 (diff) | |
download | gcc-efbe600ec9bf2d1847441969a6f0ca6d10c51ea7.tar.gz |
* c-common.h (ASM_INPUT_P): New.
* c-parse.in (asm): Set it when needed.
* c-semantics.c (genrtl_asm_stmt): Test it instead of the
existance of an operand.
* cp/parse.y (asm): Set ASM_INPUT_P.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38638 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/gcc.dg/asm-2.c | 9 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/asm-3.c | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/asm-2.c b/gcc/testsuite/gcc.dg/asm-2.c new file mode 100644 index 00000000000..80396ae288b --- /dev/null +++ b/gcc/testsuite/gcc.dg/asm-2.c @@ -0,0 +1,9 @@ +/* { dg-do compile } */ +/* { dg-options "" } */ + +int f() +{ + asm volatile ("foo%%bar" : : ); +} + +/* { dg-final { scan-assembler asm-2.c "foo%bar" } } */ diff --git a/gcc/testsuite/gcc.dg/asm-3.c b/gcc/testsuite/gcc.dg/asm-3.c new file mode 100644 index 00000000000..5c6864777f1 --- /dev/null +++ b/gcc/testsuite/gcc.dg/asm-3.c @@ -0,0 +1,9 @@ +/* { dg-do compile } */ +/* { dg-options "" } */ + +int f() +{ + asm ("foo%%bar"); +} + +/* { dg-final { scan-assembler asm-3.c "foo%%bar" } } */ |