summaryrefslogtreecommitdiff
path: root/test/CodeGen/avr/target-cpu-defines/atmega328p.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/avr/target-cpu-defines/atmega328p.c')
-rw-r--r--test/CodeGen/avr/target-cpu-defines/atmega328p.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/avr/target-cpu-defines/atmega328p.c b/test/CodeGen/avr/target-cpu-defines/atmega328p.c
new file mode 100644
index 0000000000000..83b0accbb93f1
--- /dev/null
+++ b/test/CodeGen/avr/target-cpu-defines/atmega328p.c
@@ -0,0 +1,7 @@
+// REQUIRES: avr-registered-target
+// RUN: %clang_cc1 -E -dM -triple avr-unknown-unknown -target-cpu atmega328p /dev/null | FileCheck -match-full-lines %s
+
+// CHECK: #define AVR 1
+// CHECK: #define __AVR 1
+// CHECK: #define __AVR_ATmega328P__ 1
+// CHECK: #define __AVR__ 1