blob: 61f3f3649986d2234e194c400c18f037efb1cfd0 [file] [log] [blame]
Ehud Katz03a95262020-04-16 13:26:23 +03001// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
2// PR45476
3
4// This test used to get into an infinite loop,
5// which, in turn, caused clang to never finish execution.
6
7struct s3 {
8 char a, b, c;
9};
10
11_Atomic struct s3 a;
12
13extern "C" void foo() {
14 // CHECK-LABEL: @foo
15 // CHECK: store atomic i32
16
17 a = s3{1, 2, 3};
18}
19