strong-using-1.c

来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 17 行

C
17
字号
// PR c++/13594 (secondary)// { dg-do compile }namespace foo {  template <class T> void swap(T, T);}namespace fool {  using namespace foo __attribute__((strong));  template <class T> void swap(T);}int main() {  // we used to fail to look up the associated namespace here  fool::swap(1, 1);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?