1 // Regression test for https://bugs.llvm.org/show_bug.cgi?id=32842
3 // RUN: %clang_msan -g %s -o %t
4 // RUN: not %run %t 2>&1 | FileCheck %s
7 unsigned char pad1
: 2, ihl
:4, pad2
: 2;
10 int raw_send_hdrinc(unsigned long int length
) {
12 if (iph
.ihl
* 4 > length
) {
18 int main(int argc
, char *argv
[]) {
19 return raw_send_hdrinc(12);
22 // CHECK: WARNING: MemorySanitizer: use-of-uninitialized-value