mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-26 06:48:51 -04:00

Summary: Fixes PR35772. Reviewers: rsmith Differential Revision: https://reviews.llvm.org/D43320 llvm-svn: 332018
9 lines
329 B
C++
9 lines
329 B
C++
// RUN: %clang_cc1 -triple x86_64-windows-msvc -fms-extensions -verify -std=c++11 %s
|
|
// RUN: %clang_cc1 -triple x86_64-windows-msvc -fms-extensions -verify -std=c++17 %s
|
|
|
|
// expected-no-diagnostics
|
|
|
|
struct __declspec(dllimport) Foo { int get_a(); };
|
|
template <int (Foo::*Getter)()> struct HasValue { };
|
|
HasValue<&Foo::get_a> hv;
|