mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-05-14 09:56:33 +00:00

This patch is a follow up to 878a24ee244a24. Name of bitfields with value-dependent width should be set as type-dependent. This patch adds the required value-dependency check and sets the type-dependency accordingly. Patch fixes PR44886 Differential revision: https://reviews.llvm.org/D72242
14 lines
160 B
C++
14 lines
160 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
// expected-no-diagnostics
|
|
|
|
template <int b>
|
|
class A {
|
|
int c : b;
|
|
|
|
public:
|
|
void f() {
|
|
if (c)
|
|
;
|
|
}
|
|
};
|