aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/asm-extn1.C
blob: fecd092dfb302018a1bc41a01384093a149e02e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Build don't link: 
// Special g++ Options: -S
// GROUPS passed asm-extension
// Skip if not target: sparc-sun-*
// 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));
}