summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/func-decl-cleanup.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/func-decl-cleanup.c')
-rw-r--r--clang/test/CodeGen/func-decl-cleanup.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGen/func-decl-cleanup.c b/clang/test/CodeGen/func-decl-cleanup.c
new file mode 100644
index 0000000..0af8b69
--- /dev/null
+++ b/clang/test/CodeGen/func-decl-cleanup.c
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 %s -emit-llvm -o -
+
+
+// PR2360
+typedef void fn_t();
+
+fn_t a,b;
+
+void b()
+{
+}
+