Debian Codegraph @

gcc/testsuite/g++.dg/modules/init-3_a.C

raw
1 // { dg-module-do run }
2 // { dg-additional-options {-fmodules-ts -Wno-pedantic} }
3 module;
4 # 5 __FILE__ 1
5 extern int counter;
6 # 7 "" 2
7 export module One;
8
9 export class Dyn
10 {
11 int i;
12 public:
13 Dyn () : i (++counter) {}
14 operator int () const { return i; }
15 };
16
17 export Dyn one;