1 // Example from C99 6.10.3.4p6
3 // RUN: %clang_cc1 -E %s | FileCheck -strict-whitespace %s
7 #define debug(s, t) printf("x" # s "= %d, x" # t "= s" \
9 #define INCFILE(n) vers ## n
10 #define glue(a, b) a ## b
11 #define xglue(a, b) glue(a, b)
12 #define HIGHLOW "hello"
13 #define LOW LOW ", world"
15 fputs(str(strncmp("abc\0d" "abc", '\4') // this goes away
17 include
xstr(INCFILE(2).h
)
22 // CHECK: printf("x" "1" "= %d, x" "2" "= s" x1, x2);
23 // CHECK: fputs("strncmp(\"abc\\0d\" \"abc\", '\\4') == 0" ": @\n", s);
24 // CHECK: include "vers2.h"
26 // CHECK: "hello" ", world"