summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr56990.c
blob: c857785c834d2ef369aaaf037eda29d5ddc46815 (plain)
1
2
3
4
5
6
7
8
9
10
/* PR sanitizer/56990 */
/* { dg-do compile { target { { i?86-*-linux* x86_64-*-linux* } && lp64 } } } */
/* { dg-options "-fsanitize=thread" } */

struct S{};

void foo(struct S *p)
{
  *p = (struct S){};
}