brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 4647287 Raw
18 lines · c
1// RUN: %clang_cc1 -fgnuc-version=4.2.1 -std=c89 -x c -E -dM %s | FileCheck --check-prefix=GNU-INLINE %s2// RUN: %clang_cc1 -fgnuc-version=4.2.1 -std=c99 -x c -E -dM %s | FileCheck --check-prefix=STDC-INLINE %s3// RUN: %clang_cc1 -fgnuc-version=4.2.1 -std=c99 -fgnu89-inline -x c -E -dM %s | FileCheck --check-prefix=GNU-INLINE %s4// RUN: %clang_cc1 -fgnuc-version=4.2.1 -x c++ -E -dM %s | FileCheck --check-prefix=GNU-INLINE %s5// RUN: not %clang_cc1 -fgnu89-inline -fgnuc-version=4.2.1 -fsyntax-only -x c++ %s 2>&1 | FileCheck --check-prefix=CXX %s6// RUN: not %clang_cc1 -fgnu89-inline -fgnuc-version=4.2.1 -fsyntax-only -x objective-c++ %s 2>&1 | FileCheck --check-prefix=OBJCXX %s7 8// CXX: '-fgnu89-inline' not allowed with 'C++'9// OBJCXX: '-fgnu89-inline' not allowed with 'Objective-C++'10 11// STDC-INLINE-NOT: __GNUC_GNU_INLINE__12// STDC-INLINE: #define __GNUC_STDC_INLINE__ 113// STDC-INLINE-NOT: __GNUC_GNU_INLINE__14 15// GNU-INLINE-NOT: __GNUC_STDC_INLINE__16// GNU-INLINE: #define __GNUC_GNU_INLINE__ 117// GNU-INLINE-NOT: __GNUC_STDC_INLINE__18