aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Sema/nullability-and-template-deduction.cpp
blob: 3ea6d38d26b69419cd3939ece5abf363def011a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clang_cc1 -fsyntax-only %s -verify
// expected-no-diagnostics

template <class T> struct Base {};
template <class T> struct Derived : Base<T> {};

template <class T> void foo(Base<T> *_Nonnull);

template <class T> void bar(Base<T> *);


void test() {
    Derived<int> d;
    foo(&d);
    bar(&d);
}