summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/nios2/nios2-trap-insn.c
blob: dd881d166c8eca49a5b6ddd4032bf3d449e82255 (plain)
1
2
3
4
5
6
7
/* { dg-do compile } */
/* { dg-final { scan-assembler "break\\t3" } } */

/* Test the nios2 trap instruction */
void foo(void){
  __builtin_trap();
}