view gcc/testsuite/g++.dg/cpp0x/inline-ns8.C @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

// PR c++/13659

// { dg-options "" }
// { dg-do compile }

namespace bar {
  inline namespace foo {
    template <class T> void f(T, T);
  }
  template <class T> void f(T);
}

int main() {
  // Make sure both declarations are brought in.
  using bar::f;
  f(1);
  f(1, 1);
}