YouCompleteMe/cpp/llvm/tools/clang/test/Frontend/rewrite-macros.c
Strahinja Val Markovic 1f51a89d39 Adding more llvm/clang files
These were ignored by git accidentally. We want ALL OF THEM since they all came
in the llvm/clang source distribution.
2012-07-05 17:55:45 -07:00

18 lines
319 B
C

// RUN: %clang_cc1 -verify -rewrite-macros -o %t %s
#define A(a,b) a ## b
// RUN: grep '12 */\*A\*/ /\*(1,2)\*/' %t
A(1,2)
// RUN: grep '/\*_Pragma("mark")\*/' %t
_Pragma("mark")
// RUN: grep "//#warning eek" %t
/* expected-warning {{eek}} */ #warning eek
// RUN: grep "//#pragma mark mark" %t
#pragma mark mark