repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-if10.C
blob
84d7b20b10a18349a5245ea88f095c19e507ba73
1
// PR c++/78948
2
// { dg-do compile { target c++17 } }
3
4
template <int T>
5
void sizeof_mismatch()
6
{
7
static_assert(T == 0, "sizeof mismatch");
8
}
9
10
int main()
11
{
12
if constexpr(sizeof(int*) == sizeof(char*))
13
;
14
else
15
sizeof_mismatch<sizeof(int*)>();
16
}