Skip to content

Commit bc759c4

Browse files
committed
Add crashing test
1 parent ca7be03 commit bc759c4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// RUN: %clang_analyze_cc1 -analyzer-checker=core,alpha.unix.BlockInCriticalSection -verify %s
2+
// expected-no-diagnostics
3+
4+
// This should not crash
5+
int (*a)(void);
6+
void b(void) { a(); }

0 commit comments

Comments
 (0)