clang/test/Preprocessor/preprocess-cpp-output.c
raw| 1 | // RUN: %clang_cc1 -E -x c %s | FileCheck %s --check-prefixes=EXPANDED |
| 2 | // RUN: %clang_cc1 -E -x cpp-output %s | FileCheck %s --check-prefixes=NOT-EXPANDED |
| 3 | |
| 4 | // EXPANDED: void __attribute__((__attribute__((always_inline)))) foo() |
| 5 | // NOT-EXPANDED: void __attribute__((always_inline)) foo() |
| 6 | |
| 7 | #define always_inline __attribute__((always_inline)) |
| 8 | void __attribute__((always_inline)) foo() { |
| 9 | return 4; |
| 10 | } |