aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/modules/tpl-spec-1_b.C
blob: 68f3fd80a422849259b29cc5255f61fc9e0d77df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-additional-options {-fmodules-ts -fdump-lang-module} }

import TPL;

int main ()
{
  if (foo (1.0f) != 1)
    return 1;

  if (foo (1) != 0)
    return 2;

  return 0;
}

// { dg-final { scan-lang-dump {Reading 1 pending specializations keyed to '::foo@TPL:.<T>'} module } }
// { dg-final { scan-lang-dump-not {Reading definition function_decl '::foo@TPL:.<int>'} module } }

// { dg-final { scan-assembler-not {_Z3fooIiEiT_:} } }