Fix PR4948 (and a leak): by not destroying the DwarfException
[llvm/avr.git] / test / FrontendC / 2006-09-28-SimpleAsm.c
blobe3040200a60bd69f1eb4fbbd7c962aba4adf8333
1 // RUN: %llvmgcc %s -S -o - | grep {ext: xorl %eax, eax; movl}
2 // RUN: %llvmgcc %s -S -o - | grep {nonext: xorl %eax, %eax; mov}
3 // PR924
5 void bar() {
6 // Extended asm
7 asm volatile ("ext: xorl %%eax, eax; movl eax, fs; movl eax, gs %%blah %= %% " : : "r"(1));
8 // Non-extended asm.
9 asm volatile ("nonext: xorl %eax, %eax; movl %eax, %fs; movl %eax, %gs %%blah %= %% ");