brintos

brintos / llvm-project-archived public Read only

0
0
Text · 342 B · 33e13e9 Raw
16 lines · cpp
1// RUN: %clang_analyze_cc1 -std=c++11 -analyzer-checker=core,unix.Malloc,debug.ExprInspection -Wno-null-dereference -verify %s2// expected-no-diagnostics3 4#include "Inputs/system-header-simulator-cxx.h"5 6namespace Cxx11BraceInit {7  struct Foo {8    ~Foo() {}9  };10 11  void testInitializerList() {12    for (Foo foo : {Foo(), Foo()}) {}13  }14}15 16