1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++20 %s
6 static int a() { return 0; } // expected-note {{declared as a non-template here}}
7 decltype(a
< 0 >(0)) test
; // expected-error {{'a' does not refer to a template}}
11 static int a() { return 0; } // expected-note {{declared as a non-template here}}
12 decltype(a
< 0 > (0)) test
; // expected-error {{'a' does not refer to a template}}
15 void test_is_bool(bool t
) {}
16 void test_is_bool(int t
) {}
29 static constexpr auto test() { return 1; } // expected-note {{declared as a non-template here}}
30 static constexpr int s
= test
< 1 >(); // expected-error {{'test' does not refer to a template}}