[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Analysis / dtor-cxx11.cpp
blob33e13e99bd3bdf4bac688b5c54cfe1f8235ab8b4
1 // RUN: %clang_analyze_cc1 -std=c++11 -analyzer-checker=core,unix.Malloc,debug.ExprInspection -Wno-null-dereference -verify %s
2 // expected-no-diagnostics
4 #include "Inputs/system-header-simulator-cxx.h"
6 namespace Cxx11BraceInit {
7 struct Foo {
8 ~Foo() {}
9 };
11 void testInitializerList() {
12 for (Foo foo : {Foo(), Foo()}) {}