Mercurial > hg > CbC > CbC_llvm
view clang/test/Analysis/cxx-inherited-ctor-is-skipped-as-top-level.cpp @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 0572611fdcc8 |
children |
line wrap: on
line source
// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-display-progress %s 2>&1 | FileCheck %s // Test that inheriting constructors are not analyzed as top-level functions. // CHECK: ANALYZE (Path, Inline_Regular): {{.*}} c() // CHECK: ANALYZE (Path, Inline_Regular): {{.*}} a::a(int) // CHECK-NOT: ANALYZE (Path, Inline_Regular): {{.*}} b::a(int) class a { public: a(int) {} }; struct b : a { using a::a; // Ihnerited ctor. }; void c() { int d; (b(d)); (a(d)); }