[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Analysis / cxx-inherited-ctor-is-skipped-as-top-level.cpp
blobbe7982e64114821bd7a71da3c42c819b3fce7cbd
1 // RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-display-progress %s 2>&1 | FileCheck %s
3 // Test that inheriting constructors are not analyzed as top-level functions.
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)
9 class a {
10 public:
11 a(int) {}
13 struct b : a {
14 using a::a; // Ihnerited ctor.
16 void c() {
17 int d;
18 (b(d));
19 (a(d));