1 // RUN: %clang_analyze_cc1 -analyzer-output=plist -o %t.plist -std=c++11 -analyzer-checker=core %s
2 // RUN: FileCheck --input-file=%t.plist %s
6 template <class A
, class B
, class C
, int N
>
15 template <class B
, class C
, int N
>
16 struct DivByZero
<char, B
, C
, N
> {
24 template <typename
... Args
>
25 struct DivByZeroVariadic
{
27 DivByZeroVariadic(bool b
) {
34 DivByZero
<int, float, double, 0> a(1);
35 DivByZero
<char, float, double, 0> a2(1);
36 DivByZeroVariadic
<char, float, double, decltype(nullptr)> a3(1);
39 // CHECK: <string>Calling constructor for 'DivByZero<int, float, double, 0>'</string>
40 // CHECK: <string>Calling constructor for 'DivByZero<char, float, double, 0>'</string>
41 // CHECK: <string>Calling constructor for 'DivByZeroVariadic<char, float, double, std::nullptr_t>'</string>