summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/type-cache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/type-cache.cpp')
-rw-r--r--clang/test/CodeGenCXX/type-cache.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/type-cache.cpp b/clang/test/CodeGenCXX/type-cache.cpp
new file mode 100644
index 000000000000..02caee8e0f62
--- /dev/null
+++ b/clang/test/CodeGenCXX/type-cache.cpp
@@ -0,0 +1,14 @@
+// RUN: %clang_cc1 -mllvm -verify-type-cache -emit-llvm %s -o - -triple i386-pc-windows-msvc19.16.0 | FileCheck %s
+// REQUIRES: asserts, x86-registered-target
+
+// CHECK: call {}* @"?f@@YA?AUz@@XZ"()
+
+struct z {
+ z (*p)();
+};
+
+z f();
+
+void g() {
+ f();
+}