llvm-project/clang/test/Preprocessor/macro_paste_identifier_error.c

9 lines
340 B
C

// RUN: %clang_cc1 -fms-extensions -Wno-invalid-token-paste %s -verify
// RUN: %clang_cc1 -E -fms-extensions -Wno-invalid-token-paste %s | FileCheck %s
// RUN: %clang_cc1 -E -fms-extensions -Wno-invalid-token-paste -x assembler-with-cpp %s | FileCheck %s
// expected-no-diagnostics
#define foo a ## b ## = 0
int foo;
// CHECK: int ab = 0;