aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Preprocessor/avr-common.c
blob: 70daf3fbee23ec9038beef7ffaa0b1943bfe5d4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 -E -dM -triple avr-unknown-unknown -target-cpu attiny13 /dev/null | FileCheck -match-full-lines --check-prefixes=CHECK,AVR %s
// RUN: %clang_cc1 -E -dM -triple avr-unknown-unknown -target-cpu avr25 /dev/null | FileCheck -match-full-lines --check-prefixes=CHECK,AVR %s
// RUN: %clang_cc1 -E -dM -triple avr-unknown-unknown -target-cpu attiny4 /dev/null | FileCheck -match-full-lines --check-prefixes=CHECK,TINY %s
// RUN: %clang_cc1 -E -dM -triple avr-unknown-unknown -target-cpu avrtiny /dev/null | FileCheck -match-full-lines --check-prefixes=CHECK,TINY %s

// CHECK: #define AVR 1
// CHECK: #define __AVR 1

// TINY: #define __AVR_TINY__ 1
// AVR-NOT: __AVR_TINY__

// CHECK: #define __AVR__ 1
// CHECK: #define __ELF__ 1