blob: fff853c1ba0fa783607486887916b92d89304073 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// { dg-do compile }
// PR c++/2922
namespace tpl_ {
template<class T>
char test(T);
template<class T>
struct check
{
static T const t;
enum { value = 1 == sizeof(test(t)) };
};
double test(int);
}
bool const two_phase_lookup_supported = tpl_::check<int>::value;
int compile_time_assert[two_phase_lookup_supported ? 1 : -1];
|