blob: 792343b28ecea9ec56a5d29865ee898295bb3453 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
//===--- ctad.cc - test input file for iwyu -------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// IWYU_ARGS: -I . -std=c++17
// Test that C++17 CTAD (Class Template Argument Deduction) is recognized as
// pointing back to a template, even if it's not explicitly specialized.
#include "tests/cxx/ctad-d1.h"
void f() {
// IWYU: Deduced is...*ctad-i1.h
Deduced d([] {});
}
/**** IWYU_SUMMARY
tests/cxx/ctad.cc should add these lines:
#include "tests/cxx/ctad-i1.h"
tests/cxx/ctad.cc should remove these lines:
- #include "tests/cxx/ctad-d1.h" // lines XX-XX
The full include-list for tests/cxx/ctad.cc:
#include "tests/cxx/ctad-i1.h" // for Deduced
***** IWYU_SUMMARY */
|