diff options
Diffstat (limited to 'clang/test/Index/Inputs/Headers')
-rw-r--r-- | clang/test/Index/Inputs/Headers/a.h | 2 | ||||
-rw-r--r-- | clang/test/Index/Inputs/Headers/a_extensions.h | 1 | ||||
-rw-r--r-- | clang/test/Index/Inputs/Headers/crash.h | 6 | ||||
-rw-r--r-- | clang/test/Index/Inputs/Headers/module.map | 10 | ||||
-rw-r--r-- | clang/test/Index/Inputs/Headers/nested/module.map | 4 | ||||
-rw-r--r-- | clang/test/Index/Inputs/Headers/nested/nested.h | 1 |
6 files changed, 24 insertions, 0 deletions
diff --git a/clang/test/Index/Inputs/Headers/a.h b/clang/test/Index/Inputs/Headers/a.h new file mode 100644 index 0000000..33c3417 --- /dev/null +++ b/clang/test/Index/Inputs/Headers/a.h @@ -0,0 +1,2 @@ +int *getA(); + diff --git a/clang/test/Index/Inputs/Headers/a_extensions.h b/clang/test/Index/Inputs/Headers/a_extensions.h new file mode 100644 index 0000000..2155787 --- /dev/null +++ b/clang/test/Index/Inputs/Headers/a_extensions.h @@ -0,0 +1 @@ +int *getAExtensions(); diff --git a/clang/test/Index/Inputs/Headers/crash.h b/clang/test/Index/Inputs/Headers/crash.h new file mode 100644 index 0000000..238359a --- /dev/null +++ b/clang/test/Index/Inputs/Headers/crash.h @@ -0,0 +1,6 @@ +// Produce a crash if CRASH is defined. +#ifdef CRASH +# pragma clang __debug crash +#endif + +const char *getCrashString(); diff --git a/clang/test/Index/Inputs/Headers/module.map b/clang/test/Index/Inputs/Headers/module.map new file mode 100644 index 0000000..55f8eb7 --- /dev/null +++ b/clang/test/Index/Inputs/Headers/module.map @@ -0,0 +1,10 @@ +module LibA { + header "a.h" + module Extensions { + header "a_extensions.h" + } +} + +module Crash { + header "crash.h" +} diff --git a/clang/test/Index/Inputs/Headers/nested/module.map b/clang/test/Index/Inputs/Headers/nested/module.map new file mode 100644 index 0000000..bd239f1 --- /dev/null +++ b/clang/test/Index/Inputs/Headers/nested/module.map @@ -0,0 +1,4 @@ +module nested { + header "nested.h" +} + diff --git a/clang/test/Index/Inputs/Headers/nested/nested.h b/clang/test/Index/Inputs/Headers/nested/nested.h new file mode 100644 index 0000000..01716d1 --- /dev/null +++ b/clang/test/Index/Inputs/Headers/nested/nested.h @@ -0,0 +1 @@ +int *getNested(); |