brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1021 B · 70a921f Raw
26 lines · cpp
1// RUN: %clang_cc1 -fgnuc-version=4.2.1 -std=gnu++98 -E -dM %s | FileCheck --check-prefix=CHECK-GNU-COMPAT-98 %s2// RUN: %clang_cc1 -fgnuc-version=4.2.1 -std=gnu++11 -E -dM %s | FileCheck --check-prefix=CHECK-GNU-COMPAT-11 %s3// RUN: %clang_cc1 -fgnuc-version=4.2.1 -std=c++98 -E -dM %s | FileCheck --check-prefix=CHECK-CONFORMING %s4// RUN: %clang_cc1 -fgnuc-version=4.2.1 -fsyntax-only -std=gnu++98 -verify -Weverything %s5#include <stdbool.h>6#define zzz7 8// CHECK-GNU-COMPAT-98: #define _Bool bool9// CHECK-GNU-COMPAT-98: #define bool bool10// CHECK-GNU-COMPAT-98: #define false false11// CHECK-GNU-COMPAT-98: #define true true12 13// CHECK-GNU-COMPAT-11: #define _Bool bool14// CHECK-GNU-COMPAT-11-NOT: #define bool bool15// CHECK-GNU-COMPAT-11-NOT: #define false false16// CHECK-GNU-COMPAT-11-NOT: #define true true17 18// CHECK-CONFORMING-NOT: #define _Bool19// CHECK-CONFORMING: #define __CHAR_BIT__20// CHECK-CONFORMING-NOT: #define false false21// CHECK-CONFORMING: #define zzz22 23zzz24// expected-no-diagnostics25extern bool x;26