comparison clang/test/PCH/cxx-ms-function-specialization-class-scope.cpp @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children 2e18cbf3894f
comparison
equal deleted inserted replaced
147:c2174574ed3a 150:1d019706d866
1 // REQUIRES: x86-registered-target
2 // RUN: %clang_cc1 -fms-extensions -triple i386-unknown-unknown -x c++-header -emit-pch -o %t %S/cxx-ms-function-specialization-class-scope.h
3 // RUN: %clang_cc1 -fms-extensions -triple i386-unknown-unknown -include-pch %t -fsyntax-only -verify %s
4 // expected-no-diagnostics
5
6
7 void test2()
8 {
9 B<char> b(3);
10 char* ptr;
11 b.f(ptr);
12 b.f<int>(99);
13 b.f(100);
14 }
15