Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/ext/asm16.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
4 struct S { S (); ~S (); int s[64]; } s; | 4 struct S { S (); ~S (); int s[64]; } s; |
5 | 5 |
6 void | 6 void |
7 foo () | 7 foo () |
8 { | 8 { |
9 __asm volatile ("" : "=r" (s) : : "memory"); // { dg-error "" } | 9 __asm volatile ("" : "=r" (s) : : "memory"); // { dg-error "impossible constraint" } |
10 // { dg-error "must stay in memory" "" { target *-*-* } .-1 } | |
10 } | 11 } |