1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple mips-none-none -emit-llvm -o - %s | FileCheck %s
2*0a6a1f1dSLionel Sambuc
g3(char (& buffer)[sizeof (T ()+5.0)])3*0a6a1f1dSLionel Sambuc template <class T> void g3(char (&buffer)[sizeof(T() + 5.0)]) {}
4*0a6a1f1dSLionel Sambuc template void g3<int>(char (&)[sizeof(double)]);
5*0a6a1f1dSLionel Sambuc // CHECK: _Z2g3IiEvRAszplcvT__ELd4014000000000000E_c
6*0a6a1f1dSLionel Sambuc
g4(char (& buffer)[sizeof (T ()+5.0L)])7*0a6a1f1dSLionel Sambuc template <class T> void g4(char (&buffer)[sizeof(T() + 5.0L)]) {}
8*0a6a1f1dSLionel Sambuc template void g4<int>(char (&)[sizeof(long double)]);
9*0a6a1f1dSLionel Sambuc // CHECK: _Z2g4IiEvRAszplcvT__ELe4014000000000000E_c
10*0a6a1f1dSLionel Sambuc
g5(char (& buffer)[sizeof (T ()+5)])11*0a6a1f1dSLionel Sambuc template <class T> void g5(char (&buffer)[sizeof(T() + 5)]) {}
12*0a6a1f1dSLionel Sambuc template void g5<int>(char (&)[sizeof(int)]);
13*0a6a1f1dSLionel Sambuc // CHECK: _Z2g5IiEvRAszplcvT__ELi5E_c
14*0a6a1f1dSLionel Sambuc
g6(char (& buffer)[sizeof (T ()+5L)])15*0a6a1f1dSLionel Sambuc template <class T> void g6(char (&buffer)[sizeof(T() + 5L)]) {}
16*0a6a1f1dSLionel Sambuc template void g6<int>(char (&)[sizeof(long int)]);
17*0a6a1f1dSLionel Sambuc // CHECK: _Z2g6IiEvRAszplcvT__ELl5E_c
18