[Attr] Merge two dependent tests from different directories
authorJoel E. Denny <jdenny.ornl@gmail.com>
Tue, 13 Mar 2018 22:18:29 +0000 (22:18 +0000)
committerJoel E. Denny <jdenny.ornl@gmail.com>
Tue, 13 Mar 2018 22:18:29 +0000 (22:18 +0000)
Suggested at: https://reviews.llvm.org/D43248

llvm-svn: 327456

clang/test/Frontend/ast-attr.cpp [deleted file]
clang/test/Misc/attr-print-emit.cpp [moved from clang/test/Sema/attr-print.cpp with 97% similarity]

diff --git a/clang/test/Frontend/ast-attr.cpp b/clang/test/Frontend/ast-attr.cpp
deleted file mode 100644 (file)
index ca37c3f..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-// RUN: %clang -emit-ast -o %t.ast %S/../Sema/attr-print.cpp
-// RUN: %clang_cc1 %t.ast -ast-print | FileCheck %S/../Sema/attr-print.cpp
-
-// %S/../Sema/attr-print.cpp exercises many different attributes, so we reuse
-// it here to check -emit-ast for attributes.
similarity index 97%
rename from clang/test/Sema/attr-print.cpp
rename to clang/test/Misc/attr-print-emit.cpp
index 0947b18..cc7413b 100644 (file)
@@ -1,6 +1,6 @@
 // RUN: %clang_cc1 %s -ast-print | FileCheck %s
-
-// This file is also used as input for %S/../Frontend/ast-attr.cpp.
+// RUN: %clang -emit-ast -o %t.ast %s
+// RUN: %clang_cc1 %t.ast -ast-print | FileCheck %s
 
 // CHECK: void xla(int a) __attribute__((xray_log_args(1)));
 void xla(int a) __attribute__((xray_log_args(1)));