diff options
author | Kristina Brooks <notstina@gmail.com> | 2019-05-16 03:30:08 +0000 |
---|---|---|
committer | Kristina Brooks <notstina@gmail.com> | 2019-05-16 03:30:08 +0000 |
commit | bd47850349c0e8e1306e59ee780c5cff7c3b1dbc (patch) | |
tree | 4e4146b0a7900f9e1bf2d88f0b51d7da1bfcf1c5 /test/Preprocessor/file_name_macro.c | |
parent | c81e2857a67a56294c28f17abddb4cff9e3c8a43 (diff) | |
download | clang-bd47850349c0e8e1306e59ee780c5cff7c3b1dbc.tar.gz |
Revert r360833 until I can work out the issue with Win32 bots
This reverts "r360833: [Clang][PP] Add the __FILE_NAME__ builtin macro."
The tests are failing on Windows bots, reverting the patchset until I can
work out why.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360842 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/file_name_macro.c')
-rw-r--r-- | test/Preprocessor/file_name_macro.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/test/Preprocessor/file_name_macro.c b/test/Preprocessor/file_name_macro.c deleted file mode 100644 index 9dc9dc5684..0000000000 --- a/test/Preprocessor/file_name_macro.c +++ /dev/null @@ -1,44 +0,0 @@ -// RUN: %clang_cc1 -E %s -I%S/Inputs | FileCheck -strict-whitespace %s -// RUN: %clang_cc1 -fms-compatibility -DMS -E %s -I%S/Inputs | FileCheck -check-prefix=CHECK-MS -strict-whitespace %s -// RUN: %clang_cc1 -E %s -I%S/Inputs -DBADINC -verify - -#ifdef BADINC - -// Paranoia. - -__FILE_NAME__ -#include <include-subdir/> // expected-error {{file not found}} -__FILE_NAME__ - -#else - -// Reference. -1: "file_name_macro.c" - -// Ensure it expands correctly for this file. -2: __FILE_NAME__ - -// CHECK: {{^}}1: "file_name_macro.c" -// CHECK: {{^}}2: "file_name_macro.c" - -// Test if inclusion works right. -#ifdef MS -#include <include-subdir\file_name_macro_include.h> -// MS compatibility allows for mixed separators in paths. -#include <include-subdir/subdir1\hdr1.h> -#include <include-subdir\subdir1/hdr2.h> -#else -#include <include-subdir/file_name_macro_include.h> -#endif - -#include <include-subdir/h> - -// CHECK: {{^}}3: "file_name_macro_include.h" -// CHECK: {{^}}4: "file_name_macro_include.h" -// CHECK-NOT: {{^}}5: "file_name_macro_include.h" -// CHECK-MS: {{^}}5: "file_name_macro_include.h" -// CHECK: {{^}}6: "h" -// CHECK-MS: {{^}}7: "hdr1.h" -// CHECK-MS: {{^}}8: "hdr2.h" - -#endif |