mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-21 20:45:53 -04:00

Split tests which were still using FileCheck to compare plists. Differential Revision: https://reviews.llvm.org/D51515 llvm-svn: 341621
14 lines
399 B
C++
14 lines
399 B
C++
// RUN: %clang_analyze_cc1 -std=c++11 -analyzer-checker=core.DivideZero -analyzer-config inline-lambdas=true -analyzer-output plist -verify %s -o %t
|
|
// RUN: tail -n +11 %t | diff -u -w - %S/Inputs/expected-plists/lambda-notes.cpp.plist
|
|
|
|
|
|
// Diagnostic inside a lambda
|
|
|
|
void diagnosticFromLambda() {
|
|
int i = 0;
|
|
[=] {
|
|
int p = 5/i; // expected-warning{{Division by zero}}
|
|
(void)p;
|
|
}();
|
|
}
|