summaryrefslogtreecommitdiff
path: root/clang/test/Analysis/blocks-nrvo.c
blob: 89b7fd39577b30a3a93a9db80219397420ea021b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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
  };
}