]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Analysis/dtor-cxx11.cpp
Vendor import of clang trunk r300422:
[FreeBSD/FreeBSD.git] / test / Analysis / dtor-cxx11.cpp
1 // RUN: %clang_analyze_cc1 -std=c++11 -analyzer-checker=core,unix.Malloc,debug.ExprInspection -analyzer-config cfg-temporary-dtors=true -Wno-null-dereference -verify %s
2 // expected-no-diagnostics
3
4 #include "Inputs/system-header-simulator-cxx.h"
5
6 namespace Cxx11BraceInit {
7   struct Foo {
8     ~Foo() {}
9   };
10
11   void testInitializerList() {
12     for (Foo foo : {Foo(), Foo()}) {}
13   }
14 }
15