aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/bit-cast8.C
blob: 17a416534d78cfbda79c70fe74b2b7878eaa7c9b (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/98469
// { dg-do compile { target c++20 } }
// { dg-options "-Wall" }

struct S { int s; };

S
foo ()
{
  return __builtin_bit_cast (S, 0);
}