summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs/codegen
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Modules/Inputs/codegen')
-rw-r--r--clang/test/Modules/Inputs/codegen/foo.h3
-rw-r--r--clang/test/Modules/Inputs/codegen/use.cpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/codegen/foo.h b/clang/test/Modules/Inputs/codegen/foo.h
index bd3b6489e71..76ad6559cca 100644
--- a/clang/test/Modules/Inputs/codegen/foo.h
+++ b/clang/test/Modules/Inputs/codegen/foo.h
@@ -29,4 +29,7 @@ inline void inst_decl() {
inst<float>();
}
+__attribute__((always_inline)) inline void always_inl() {
+}
+
asm("narf");
diff --git a/clang/test/Modules/Inputs/codegen/use.cpp b/clang/test/Modules/Inputs/codegen/use.cpp
index cd1a4a642d0..3e551881f63 100644
--- a/clang/test/Modules/Inputs/codegen/use.cpp
+++ b/clang/test/Modules/Inputs/codegen/use.cpp
@@ -6,3 +6,6 @@ void non_modular_use_of_implicit_dtor() {
void use_of_instantiated_declaration_without_definition() {
inst<int>();
}
+void call_always_inline() {
+ always_inl();
+}
OpenPOWER on IntegriCloud