summaryrefslogtreecommitdiffstats
path: root/test/ASTMerge/macro/Inputs/macro1.h
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2016-11-16 18:21:00 +0000
committerSean Callanan <scallanan@apple.com>2016-11-16 18:21:00 +0000
commit52fefd89fd4c7ce3d10b9df5ec0b1da5258fb33f (patch)
treed241145cd1d5c5f83af2e173cd241960576eab9e /test/ASTMerge/macro/Inputs/macro1.h
parent75468b182ef85c3e12160057b3ff8daf40cf4dee (diff)
Fixed layout of test/ASTMerge.
As outlined in a previous RFC, the test/ASTMerge/Inputs folder is getting full and the tests are starting to become interdependent. This is undesirable because - it makes it harder to write new tests - it makes it harder to figure out at a glance what old tests are doing, and - it adds the risk of breaking one test while changing a different one, because of the interdependencies. To fix this, according to the conversation in the RFC, I have changed the layout from a.c Inputs/a1.c Inputs/a2.c to a/test.c a/Inputs/a1.c a/Inputs/a2.c for all existing tests. I have also eliminated interdependencies by replicating the input files for each test that uses them. https://reviews.llvm.org/D26571 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@287129 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ASTMerge/macro/Inputs/macro1.h')
-rw-r--r--test/ASTMerge/macro/Inputs/macro1.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ASTMerge/macro/Inputs/macro1.h b/test/ASTMerge/macro/Inputs/macro1.h
new file mode 100644
index 0000000000..9613394967
--- /dev/null
+++ b/test/ASTMerge/macro/Inputs/macro1.h
@@ -0,0 +1,5 @@
+typedef void *VoidRef;
+
+void maybeNull(
+ int i,
+ _Nullable VoidRef *_Nullable);