File tree Expand file tree Collapse file tree 8 files changed +47
-1
lines changed
Expand file tree Collapse file tree 8 files changed +47
-1
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1+ #include "testharness.h"
2+
3+ int main () {
4+ asm goto ("nop" );
5+ E (1 );
6+ }
Original file line number Diff line number Diff line change 1+ #include "testharness.h"
2+
3+ void code () {
4+ asm goto ("nop" : );
5+ E (1 );
6+ }
Original file line number Diff line number Diff line change 1+ #include "testharness.h"
2+
3+ int main (void ) {
4+ start :
5+ asm goto ("nop" : : : : start , exit );
6+ exit :
7+ SUCCESS ;
8+ }
Original file line number Diff line number Diff line change 1+ #include "testharness.h"
2+
3+ void code () {
4+ start :
5+ asm("nop" : : : : start , exit );
6+ exit :
7+ E (1 );
8+ }
Original file line number Diff line number Diff line change 1+ #include "testharness.h"
2+
3+ void code () {
4+ asm goto ("nop" : : : : start , exit );
5+ E (1 );
6+ }
Original file line number Diff line number Diff line change 1+ #include "testharness.h"
2+
3+ void code () {
4+ asm goto ("nop" : : : );
5+ E (1 );
6+ }
Original file line number Diff line number Diff line change @@ -182,7 +182,13 @@ sub addToGroup {
182182addTest(" test/asm4 _GNUCC=1" );
183183addTest(" test/asm_emptyclobberallowed _GNUCC=1" );
184184addTest(" testobj/asm5 _GNUCC=1" );
185- addTest(" test/asm6" );
185+ addTest(" test/asm_goto0" );
186+ addTestFail(" test/asm_goto1" , " expected non-empty labels list in asm goto" );
187+ addTestFail(" test/asm_goto2" , " expected non-empty labels list in asm goto" );
188+ addTest(" test/asm_goto3" );
189+ addTestFail(" test/asm_goto4" , " labels provided in inline asm without goto attribute" );
190+ addTestFail(" test/asm_goto5" , " Error: Label start not found" );
191+ addTestFail(" test/asm_goto6" , " expected non-empty labels list in asm goto" );
186192
187193addTest(" testrun/offsetof" );
188194addTest(" testrun/offsetof1" );
You can’t perform that action at this time.
0 commit comments