Debian Codegraph @

libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/volatile_ptr.cc

raw
1 // { dg-options "-fno-inline" }
2 // { dg-do run { target c++23 } }
3
4 #include <sstream>
5 #include <testsuite_hooks.h>
6
7 int main()
8 {
9 int i = 0;
10 volatile void* vp = &i;
11 std::ostringstream s1, s2;
12 s1 << &i;
13 s2 << vp;
14 VERIFY( s1.str() == s2.str() );
15 }