diff options
Diffstat (limited to 'clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p3-0x.cpp')
| -rw-r--r-- | clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p3-0x.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p3-0x.cpp b/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p3-0x.cpp index 63909fb7cdb..9dd683261ed 100644 --- a/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p3-0x.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p3-0x.cpp @@ -15,3 +15,15 @@ namespace PR8130 { int &ir = b * a; } } + +namespace OrderWithStaticMember { + struct A { + template<class T> int g(T**, int=0) { return 0; } + template<class T> static int g(T*) { return 1; } + }; + void f() { + A a; + int **p; + a.g(p); + } +} |

