]> granicus.if.org Git - clang/commitdiff
Use an i686 triple for this test now that it uses stdcall
authorReid Kleckner <reid@kleckner.net>
Fri, 19 Jul 2013 20:32:18 +0000 (20:32 +0000)
committerReid Kleckner <reid@kleckner.net>
Fri, 19 Jul 2013 20:32:18 +0000 (20:32 +0000)
There seems to be a crash here if we have a calling convention attribute
that gets ignored and then we instantiate templates.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186719 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaTemplate/instantiate-function-params.cpp

index 97ee03f29ceb9092009c864b58440a0c169b97e1..7ab21c7d7ed28d06950c91f6bec37d8f393c5512 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -triple i686-unknown-unknown -fsyntax-only -verify %s
 
 // PR6619
 template<bool C> struct if_c { };
@@ -86,6 +86,8 @@ namespace InstantiateFunctionTypedef {
     typedef int stdfunctype(int, int) __attribute__((stdcall));
     __attribute__((stdcall)) functype stdfunc1;
     stdfunctype stdfunc2;
+
+    // FIXME: Test a calling convention not supported by this target.
   };
 
   void f(X<int> x) {