1 // RUN: %clang_cc1 -fsyntax-only -fms-extensions -verify %s 2 // expected-no-diagnostics 3 4 typedef 5 struct __attribute__((packed)) S1 { 6 char c0; 7 int x; 8 char c1; 9 } S1; 10 11 void bar(__unaligned int *); 12 foo(__unaligned S1 * s1)13void foo(__unaligned S1* s1) 14 { 15 bar(&s1->x); 16 } 17