2017-07-08 06:04:29 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-windows-msvc -fms-extensions -verify -std=c++11 %s
|
2018-05-11 02:57:35 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-windows-msvc -fms-extensions -verify -std=c++17 %s
|
2017-07-08 06:04:29 +08:00
|
|
|
|
|
|
|
// expected-no-diagnostics
|
|
|
|
|
|
|
|
struct __declspec(dllimport) Foo { int get_a(); };
|
|
|
|
template <int (Foo::*Getter)()> struct HasValue { };
|
|
|
|
HasValue<&Foo::get_a> hv;
|