[LSan] Export a LSan API for use it third party
[platform/upstream/linaro-gcc.git] / gcc / testsuite / g++.dg / esan / unaligned.C
1 // { dg-do run { target { x86_64-*-linux* } } }
2 // { dg-options "-fsanitize=efficiency-working-set" }
3
4 class A {
5 public:
6   bool : 1;
7   bool IsExpandedByDefault : 1;
8 };
9
10 void fn1() {
11   A a;
12   a.IsExpandedByDefault = 0;
13 }
14
15 int main (int argc, char **argv) {
16   fn1 ();
17   return 0;
18 }