llvm-project/clang/test/Preprocessor/include-directive1.c

15 lines
304 B
C
Raw Normal View History

// RUN: clang-cc -E %s -fno-caret-diagnostics 2>&1 >/dev/null | grep 'file successfully included' | count 3
2006-06-18 15:16:30 +08:00
// XX expands to nothing.
#define XX
2009-02-05 03:38:12 +08:00
// expand macros to get to file to include
2006-06-18 15:16:30 +08:00
#define FILE "file_to_include.h"
#include XX FILE
#include FILE
2009-02-05 03:38:12 +08:00
// normal include
2006-06-18 15:16:30 +08:00
#include "file_to_include.h"
2009-02-05 03:38:12 +08:00