bolt/deps/llvm-18.1.8/clang/test/Analysis/blocks-nrvo.c
2025-02-14 19:21:04 +01:00

14 lines
198 B
C

// RUN: %clang_analyze_cc1 -w -analyzer-checker=core -fblocks -verify %s
// expected-no-diagnostics
typedef struct {
int x;
} S;
void foo(void) {
^{
S s;
return s; // no-crash
};
}