[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / clang / test / Sema / address-unaligned.c
blob6719509051b3d65c6ef5a592cfb4e615f0f618fd
1 // RUN: %clang_cc1 -fsyntax-only -fms-extensions -verify %s
2 // expected-no-diagnostics
4 typedef
5 struct __attribute__((packed)) S1 {
6 char c0;
7 int x;
8 char c1;
9 } S1;
11 void bar(__unaligned int *);
13 void foo(__unaligned S1* s1)
15 bar(&s1->x);