cb424d7448
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).
37 lines
885 B
C
37 lines
885 B
C
// RUN: %clang_cc1 -Wno-int-conversion -triple armv7-apple-darwin -target-feature +neon %s -emit-llvm -o - | FileCheck %s
|
|
|
|
typedef struct _zend_ini_entry zend_ini_entry;
|
|
struct _zend_ini_entry {
|
|
void *mh_arg1;
|
|
};
|
|
|
|
char a;
|
|
|
|
const zend_ini_entry ini_entries[] = {
|
|
{ ((char*)&((zend_ini_entry*)0)->mh_arg1 - (char*)(void*)0)},
|
|
};
|
|
|
|
// PR7564
|
|
struct GLGENH {
|
|
int : 27;
|
|
int EMHJAA : 1;
|
|
};
|
|
|
|
struct GLGENH ABHFBF = {1};
|
|
|
|
typedef __attribute__(( ext_vector_type(2) )) unsigned int uint2;
|
|
typedef __attribute__(( __vector_size__(8) )) unsigned int __neon_uint32x2_t;
|
|
|
|
typedef unsigned int uint32_t;
|
|
typedef __attribute__((neon_vector_type(2))) uint32_t uint32x2_t;
|
|
void foo(void) {
|
|
const uint32x2_t signBit = { (uint2) 0x80000000 };
|
|
}
|
|
|
|
// CHECK: %struct.fp_struct_foo = type { ptr }
|
|
struct fp_struct_bar { int a; };
|
|
|
|
struct fp_struct_foo {
|
|
void (*FP)(struct fp_struct_bar);
|
|
} G;
|