aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/msp430/430x-default-isa.c
blob: 4e8077786b052ed7aa1bc2cb7fe4a5de551f2f7e (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-skip-if "" { *-*-* } { "-mcpu=*" "-mmcu=*" } } */
/* { dg-options "-mmcu=msp430foobar -mno-warn-mcu -mno-warn-devices-csv" } */

/* Verify that the default ISA is set to 430X when the MCU passed to -mmcu= is
   unrecognized.  */

#ifndef __MSP430X__
#error
#endif