Debian Codegraph @

gcc/testsuite/g++.dg/modules/noexcept-2_a.H

raw
1 // PR c++/115159
2 // { dg-additional-options -fmodule-header }
3 // { dg-module-cmi {} }
4
5 struct QDebug;
6
7 template<class T> void f(T);
8
9 template<class T> struct QList {
10 QDebug g(QList &other) noexcept(noexcept(f(other)));
11 QDebug h(QList &other) noexcept(noexcept(f(other)));
12 };
13
14 struct QObjectData {
15 QList<int> children;
16 };
17
18 struct QIODevice {
19 QObjectData d_ptr;
20 };
21
22 struct QDebug {
23 QDebug(QIODevice);
24 };