r294815 - Move test include file from include/ to Inputs/
Richard Trieu via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 10 16:52:02 PST 2017
Author: rtrieu
Date: Fri Feb 10 18:52:01 2017
New Revision: 294815
URL: http://llvm.org/viewvc/llvm-project?rev=294815&view=rev
Log:
Move test include file from include/ to Inputs/
The Inputs/ directory is the recommended location for extra files for test
cases. No functional change.
Added:
cfe/trunk/test/CodeGen/Inputs/debug-info-macro.h
- copied unchanged from r294802, cfe/trunk/test/CodeGen/include/debug-info-macro.h
Removed:
cfe/trunk/test/CodeGen/include/debug-info-macro.h
Modified:
cfe/trunk/test/CodeGen/debug-info-macro.c
Modified: cfe/trunk/test/CodeGen/debug-info-macro.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/debug-info-macro.c?rev=294815&r1=294814&r2=294815&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/debug-info-macro.c (original)
+++ cfe/trunk/test/CodeGen/debug-info-macro.c Fri Feb 10 18:52:01 2017
@@ -1,10 +1,10 @@
-// RUN: %clang_cc1 -emit-llvm -debug-info-kind=line-tables-only -debug-info-macro %s -o - "-DC1(x)=( x + 5 )" -DA -include %S/include/debug-info-macro.h -UC1 | FileCheck -check-prefixes=CHECK,NO_PCH %s
-// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -debug-info-macro %s -o - "-DC1(x)=( x + 5 )" -DA -include %S/include/debug-info-macro.h -UC1 | FileCheck -check-prefixes=CHECK,NO_PCH %s
-// RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -debug-info-macro %s -o - "-DC1(x)=( x + 5 )" -DA -include %S/include/debug-info-macro.h -UC1 | FileCheck -check-prefixes=CHECK,NO_PCH %s
-// RUN: %clang_cc1 -emit-llvm -debug-info-macro %s -o - "-DC1(x)=( x + 5 )" -DA -include %S/include/debug-info-macro.h -UC1 | FileCheck -check-prefixes=NO_MACRO %s
+// RUN: %clang_cc1 -emit-llvm -debug-info-kind=line-tables-only -debug-info-macro %s -o - "-DC1(x)=( x + 5 )" -DA -include %S/Inputs/debug-info-macro.h -UC1 | FileCheck -check-prefixes=CHECK,NO_PCH %s
+// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -debug-info-macro %s -o - "-DC1(x)=( x + 5 )" -DA -include %S/Inputs/debug-info-macro.h -UC1 | FileCheck -check-prefixes=CHECK,NO_PCH %s
+// RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -debug-info-macro %s -o - "-DC1(x)=( x + 5 )" -DA -include %S/Inputs/debug-info-macro.h -UC1 | FileCheck -check-prefixes=CHECK,NO_PCH %s
+// RUN: %clang_cc1 -emit-llvm -debug-info-macro %s -o - "-DC1(x)=( x + 5 )" -DA -include %S/Inputs/debug-info-macro.h -UC1 | FileCheck -check-prefixes=NO_MACRO %s
-// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -debug-info-macro %S/include/debug-info-macro.h -emit-pch -o %t.pch -DC3
-// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -debug-info-macro %s -o - -include-pch %t.pch "-DC1(x)=( x + 5 )" -DA -include %S/include/debug-info-macro.h -UC1 | FileCheck -check-prefixes=CHECK,PCH %s
+// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -debug-info-macro %S/Inputs/debug-info-macro.h -emit-pch -o %t.pch -DC3
+// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -debug-info-macro %s -o - -include-pch %t.pch "-DC1(x)=( x + 5 )" -DA -include %S/Inputs/debug-info-macro.h -UC1 | FileCheck -check-prefixes=CHECK,PCH %s
// This test checks that macro Debug info is correctly generated.
@@ -13,10 +13,10 @@
#line 15
/*Line 15*/ #define D1 1
-/*Line 16*/ #include "include/debug-info-macro.h"
+/*Line 16*/ #include "Inputs/debug-info-macro.h"
/*Line 17*/ #undef D1
/*Line 18*/ #define D2 2
-/*Line 19*/ #include "include/debug-info-macro.h"
+/*Line 19*/ #include "Inputs/debug-info-macro.h"
/*Line 20*/ #undef D2
// NO_MACRO-NOT: macros
Removed: cfe/trunk/test/CodeGen/include/debug-info-macro.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/include/debug-info-macro.h?rev=294814&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/include/debug-info-macro.h (original)
+++ cfe/trunk/test/CodeGen/include/debug-info-macro.h (removed)
@@ -1,12 +0,0 @@
-
-#ifdef D1
-/*Line 3*/ #define A(x, y, z) (x)
-#endif
-
-#ifdef D2
-/*Line 7*/ #define A(x, y, z) (y)
-#endif
-
-#ifdef A
-/*Line 11*/ #undef A
-#endif
More information about the cfe-commits
mailing list