2009-03-24 10:24:46 +08:00
|
|
|
// 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
|
|
|
|