summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/declare_variant_implementation_vendor_codegen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/OpenMP/declare_variant_implementation_vendor_codegen.cpp')
-rw-r--r--clang/test/OpenMP/declare_variant_implementation_vendor_codegen.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/OpenMP/declare_variant_implementation_vendor_codegen.cpp b/clang/test/OpenMP/declare_variant_implementation_vendor_codegen.cpp
index b0940751b76..1c200cca909 100644
--- a/clang/test/OpenMP/declare_variant_implementation_vendor_codegen.cpp
+++ b/clang/test/OpenMP/declare_variant_implementation_vendor_codegen.cpp
@@ -22,6 +22,8 @@
// CHECK-DAG: ret i32 7
// CHECK-DAG: ret i32 82
// CHECK-DAG: ret i32 83
+// CHECK-DAG: ret i32 85
+// CHECK-DAG: ret i32 86
// CHECK-NOT: ret i32 {{1|4|81|84}}
#ifndef HEADER
@@ -110,4 +112,14 @@ static int prio1_() { return 1; }
int int_fn() { return prio1_(); }
+int fn_linkage_variant() { return 85; }
+extern "C" {
+#pragma omp declare variant(fn_linkage_variant) match(implementation = {vendor(llvm)})
+int fn_linkage() { return 1; }
+}
+
+extern "C" int fn_linkage_variant1() { return 86; }
+#pragma omp declare variant(fn_linkage_variant1) match(implementation = {vendor(llvm)})
+int fn_linkage1() { return 1; }
+
#endif // HEADER
OpenPOWER on IntegriCloud