2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / constexpr-if10.C
blob84d7b20b10a18349a5245ea88f095c19e507ba73
1 // PR c++/78948
2 // { dg-do compile { target c++17 } }
4 template <int T>
5 void sizeof_mismatch()
7     static_assert(T == 0, "sizeof mismatch");
10 int main()
12   if constexpr(sizeof(int*) == sizeof(char*))
13     ;
14   else
15     sizeof_mismatch<sizeof(int*)>();