blob: 2f3c5f41ce71d94c811e0fca4cfd0659d5dbbb14 [file] [log] [blame]
// PR c++/62212
// { dg-do compile }
typedef int my_int;
template<typename T>
struct X {
enum {value = 1};
};
template<typename T>
void f(const my_int(&)[X<T>::value]);
int main() {
const my_int a[1] = {};
f<void>(a);
}
// { dg-final { scan-assembler "_Z1fIvEvRAsr1XIT_E5value_Ki" } }