blob: 3c9b1e1cd4523c0613a8f3828e140253ab471bfc [file] [log] [blame]
// { dg-do compile { target c++2a } }
template <int N> void foo(const char (*s)[([]{}, N)]) {}
template <class T> void spam(decltype([]{}) (*s)[sizeof(T)]) {}
int main()
{
foo<1>(nullptr);
spam<char>(nullptr);
}
// { dg-final { scan-assembler-not "weak.*_Z" } }