diff options
author | Ben Langmuir <blangmuir@apple.com> | 2015-01-13 17:47:44 +0000 |
---|---|---|
committer | Ben Langmuir <blangmuir@apple.com> | 2015-01-13 17:47:44 +0000 |
commit | c1d88ea5a751e7e42fc01d297e25eda9e790fea1 (patch) | |
tree | 8de8042fcca0cf1478204a9e7cd5dc0156141ab9 /clang/test/Modules/inferred-attributes.mm | |
parent | 7615f00e5188e50180f9e2f62c24d50191038bdd (diff) | |
download | bcm5719-llvm-c1d88ea5a751e7e42fc01d297e25eda9e790fea1.tar.gz bcm5719-llvm-c1d88ea5a751e7e42fc01d297e25eda9e790fea1.zip |
Inherit attributes when infering a framework module
If a module map contains
framework module * [extern_c] {}
We will now infer [extern_c] on the inferred framework modules (we
already inferred [system] as a special case).
llvm-svn: 225803
Diffstat (limited to 'clang/test/Modules/inferred-attributes.mm')
-rw-r--r-- | clang/test/Modules/inferred-attributes.mm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Modules/inferred-attributes.mm b/clang/test/Modules/inferred-attributes.mm new file mode 100644 index 00000000000..5fc1d623f39 --- /dev/null +++ b/clang/test/Modules/inferred-attributes.mm @@ -0,0 +1,6 @@ +// RUN: rm -rf %t +// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -F %S/Inputs/inferred-attr -fsyntax-only -verify %s +// expected-no-diagnostics +extern "C" { +@import InferredExternC; +} |