Debian Codegraph @

gcc/testsuite/g++.dg/modules/auto-4_b.C

raw
1 // PR c++/114795
2 // { dg-additional-options "-fmodules-ts -fno-module-lazy" }
3
4 template<class T>
5 struct A {
6 auto f() { return T(); }
7 };
8
9 A<int> a;
10
11 import "auto-4_a.H";
12
13 int main() {
14 g<int>(); // { dg-bogus "before deduction of 'auto'" "" { target *-*-* } 0 }
15 }