Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / BlocksRuntime / block-static.c
blob6c51528acf76e670d5e67fbf6572b367f5453bba
1 //
2 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
3 // See https://llvm.org/LICENSE.txt for license information.
4 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 // testfilerunner CONFIG
8 #include <stdio.h>
11 int main(int argc, char **argv) {
12 static int numberOfSquesals = 5;
14 ^{ numberOfSquesals = 6; }();
16 if (numberOfSquesals == 6) {
17 printf("%s: success\n", argv[0]);
18 return 0;
20 printf("**** did not update static local, rdar://6177162\n");
21 return 1;