brintos

brintos / llvm-project-archived public Read only

0
0
Text · 250 B · 6719509 Raw
17 lines · c
1// RUN: %clang_cc1 -fsyntax-only -fms-extensions -verify %s2// expected-no-diagnostics3 4typedef5struct __attribute__((packed)) S1 {6  char c0;7  int x;8  char c1;9} S1;10 11void bar(__unaligned int *);12 13void foo(__unaligned S1* s1)14{15    bar(&s1->x);16}17