When comparing two calling conventions after redeclaring a function, compare
the canonical calling conventions instead of comparing the raw calling
conventions directly. Fixes PR6361.
llvm-svn: 96895
diff --git a/clang/test/Sema/callingconv.c b/clang/test/Sema/callingconv.c
index 0752606..424db75 100644
--- a/clang/test/Sema/callingconv.c
+++ b/clang/test/Sema/callingconv.c
@@ -36,3 +36,7 @@
typedef void (__attribute__((fastcall)) *Handler) (float *);
Handler H = foo;
+// PR6361
+void ctest3();
+void __attribute__((cdecl)) ctest3() {}
+