summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/static-init1.C
blob: 298d1714002d1bbd4b27d60653b290495eed8e55 (plain)
1
2
3
4
5
// Related to the patch for 38880.
// Make sure we don't think we can initialize a at compile time.

char c;
short a[] = { (short)((__PTRDIFF_TYPE__)&c + (__PTRDIFF_TYPE__)&c) };