]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Thu, 20 Jun 2002 23:25:11 +0000 (23:25 +0000)
committerNo Author <no-author@gcc.gnu.org>
Thu, 20 Jun 2002 23:25:11 +0000 (23:25 +0000)
'gcc-3_1-branch'.

From-SVN: r54863

gcc/testsuite/g++.dg/opt/asm1.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/opt/asm1.C b/gcc/testsuite/g++.dg/opt/asm1.C
new file mode 100644 (file)
index 0000000..3f932a6
--- /dev/null
@@ -0,0 +1,9 @@
+// PR c++/6747
+// { dg-do compile }
+// { dg-options "-O" }
+
+void foo()
+{
+  union { double d; char c[sizeof(double)]; } tmp;
+  __asm__ ("" : "=m" (tmp.d)); // { dg-bogus "not directly addressable" }
+}