summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/blocks-nrvo.c
blob: bb0be869ee76772fa9d01b7fe1f64da8720e2442 (plain) (blame)
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() {
  ^{
    S s;
    return s; // no-crash
  };
}