summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/asm-8.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-26 15:53:14 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-26 15:53:14 +0000
commit16d4da86ad326a997d75ae7a4713f4f250964883 (patch)
tree2004ca3e22c09d34da7b9b5d3effeba065873fd5 /gcc/testsuite/gcc.dg/asm-8.c
parent86b042fab4995bfbcc294b9f12bc6450c7e1245b (diff)
downloadgcc-16d4da86ad326a997d75ae7a4713f4f250964883.tar.gz
PR inline-asm/11676
* cse.c (count_reg_usage): Handle asm_operands properly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69816 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/asm-8.c')
-rw-r--r--gcc/testsuite/gcc.dg/asm-8.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/asm-8.c b/gcc/testsuite/gcc.dg/asm-8.c
new file mode 100644
index 00000000000..a3f3962eb16
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/asm-8.c
@@ -0,0 +1,9 @@
+/* PR inline-asm/11676 */
+/* { dg-do compile } */
+/* { dg-options "-O -Wall" } */
+
+void foo(void)
+{
+ long x = 0;
+ asm volatile ("" : "=r"(x) : "r"(x)); /* { dg-bogus "uninitialized" } */
+}