Files
RedBear-OS/local/recipes/dev/libclc/source/clang/test/CodeGenCXX/copy-assign-volatile-synthesis.cpp
T
vasilito cb424d7448 build: static patch-sanity linter (shift-left the malformed-patch class)
verify-patch-sanity.py validates every active recipe .patch has internally-
consistent hunk line counts — catching the 'malformed patch at line N' failure
at commit/CI/preflight time instead of hours into a cook. This cycle hit that
class three times (qtwaylandscanner, sddm, xwayland), each only discovered when
cookbook tried to apply the patch.

Running it across the repo found 29 latent malformed patches (validated against
GNU patch: e.g. relibc/P3-sysv-ipc reproduces 'malformed patch at line 22').
They were harmless only because they sit in vendored recipes (baked, not re-
applied) — but would fail on any version-bump re-derivation. --fix recounts the
hunk headers (body untouched) and repaired all 29.

Wired into build-preflight.sh (Phase 1.0D) and redbear-ci.yml, with a unit test
(test-patch-sanity.sh). Skips archived/legacy trees and unvalidatable formats
(empty placeholders, bare-@@ git hunks).
2026-08-01 05:13:02 +03:00

43 lines
735 B
C++

// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
typedef unsigned long word_t;
typedef unsigned long u64_t;
typedef unsigned int u32_t;
class ioapic_redir_t {
public:
union {
struct {
word_t vector : 8;
word_t delivery_mode : 3;
word_t dest_mode : 1;
word_t delivery_status : 1;
word_t polarity : 1;
word_t irr : 1;
word_t trigger_mode : 1;
word_t mask : 1;
word_t _pad0 : 15;
word_t dest : 8;
};
volatile u32_t raw[2];
volatile u64_t raw64;
};
};
struct ioapic_shadow_struct
{
ioapic_redir_t redirs[24];
} ioapic_shadow[16];
void init_ioapic(unsigned long ioapic_id)
{
ioapic_redir_t entry;
ioapic_shadow[ioapic_id].redirs[3] = entry;
}
// CHECK: call void @llvm.memcpy