Fix canonical type construction for function types with the noreturn
attribute. Fixes PR4865.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78224 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/attr-noreturn.c b/test/Sema/attr-noreturn.c
index 2970a48..f649b91 100644
--- a/test/Sema/attr-noreturn.c
+++ b/test/Sema/attr-noreturn.c
@@ -25,3 +25,11 @@
return; // expected-warning {{function 'f4' declared 'noreturn' should not return}}
}
+// PR4685
+extern void f5 (unsigned long) __attribute__ ((__noreturn__));
+
+void
+f5 (unsigned long size)
+{
+
+}
\ No newline at end of file