brintos

brintos / llvm-project-archived public Read only

0
0
Text · 485 B · be7982e Raw
21 lines · cpp
1// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-display-progress %s 2>&1 | FileCheck %s2 3// Test that inheriting constructors are not analyzed as top-level functions.4 5// CHECK: ANALYZE (Path,  Inline_Regular): {{.*}} c()6// CHECK: ANALYZE (Path,  Inline_Regular): {{.*}} a::a(int)7// CHECK-NOT: ANALYZE (Path,  Inline_Regular): {{.*}} b::a(int)8 9class a {10public:11  a(int) {}12};13struct b : a {14  using a::a; // Ihnerited ctor.15};16void c() {17  int d;18  (b(d));19  (a(d));20}21