1*5e866e41SReid Kleckner // RUN: %clang_cc1 -fgnuc-version=4.2.1 -std=c89 -fsyntax-only -x c -E -dM %s | FileCheck --check-prefix=GNU-INLINE %s
2*5e866e41SReid Kleckner // RUN: %clang_cc1 -fgnuc-version=4.2.1 -std=c99 -fsyntax-only -x c -E -dM %s | FileCheck --check-prefix=STDC-INLINE %s
3*5e866e41SReid Kleckner // RUN: %clang_cc1 -fgnuc-version=4.2.1 -std=c99 -fgnu89-inline -fsyntax-only -x c -E -dM %s | FileCheck --check-prefix=GNU-INLINE %s
4*5e866e41SReid Kleckner // RUN: %clang_cc1 -fgnuc-version=4.2.1 -fsyntax-only -x c++ -E -dM %s | FileCheck --check-prefix=GNU-INLINE %s
5*5e866e41SReid Kleckner // RUN: not %clang_cc1 -fgnu89-inline -fgnuc-version=4.2.1 -fsyntax-only -x c++ %s 2>&1 | FileCheck --check-prefix=CXX %s
6*5e866e41SReid Kleckner // RUN: not %clang_cc1 -fgnu89-inline -fgnuc-version=4.2.1 -fsyntax-only -x objective-c++ %s 2>&1 | FileCheck --check-prefix=OBJCXX %s
7470d9424SPeter Collingbourne 
8b0fe7045SRichard Smith // CXX: '-fgnu89-inline' not allowed with 'C++'
9b0fe7045SRichard Smith // OBJCXX: '-fgnu89-inline' not allowed with 'Objective-C++'
10470d9424SPeter Collingbourne 
11470d9424SPeter Collingbourne // STDC-INLINE-NOT: __GNUC_GNU_INLINE__
12470d9424SPeter Collingbourne // STDC-INLINE: #define __GNUC_STDC_INLINE__ 1
13470d9424SPeter Collingbourne // STDC-INLINE-NOT: __GNUC_GNU_INLINE__
14470d9424SPeter Collingbourne 
15470d9424SPeter Collingbourne // GNU-INLINE-NOT: __GNUC_STDC_INLINE__
16470d9424SPeter Collingbourne // GNU-INLINE: #define __GNUC_GNU_INLINE__ 1
17470d9424SPeter Collingbourne // GNU-INLINE-NOT: __GNUC_STDC_INLINE__
18