1 // RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-display-progress %s 2>&1 | FileCheck %s
2
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
9 class a {
10 public:
a(int)11 a(int) {}
12 };
13 struct b : a {
14 using a::a; // Ihnerited ctor.
15 };
c()16 void c() {
17 int d;
18 (b(d));
19 (a(d));
20 }
21