summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/asm-extn1.C
blob: 3c39972ba40e6f1dfa1168a2445c27c5c525307f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do assemble { target sparc-sun-* } }
// { dg-options "-S" }
// GROUPS passed asm-extension
// This used to crash because c_expand_asm_keyword didn't know what to
// do with this.  The parser rules were changed to accept an expr, instead
// of a stmt.

extern void traptable(void);

main()
{
  asm("wr    %0,%%tbr" : : "r" (traptable));
}