Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/launder8.C

raw
1 // PR c++/84444
2 // { dg-do compile }
3 // { dg-options "-O2" }
4
5 struct A {};
6
7 __UINTPTR_TYPE__
8 foo (A *p)
9 {
10 return (__UINTPTR_TYPE__) __builtin_launder (p);
11 }