1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
8 int test_ptr10034(int argc
, char **argv
)
19 for (int i
= 0; i
< argc
; ++i
)
33 goto end
; // expected-error{{cannot jump from this goto statement to its label}}
34 Y y
; // expected-note{{jump bypasses variable with a non-trivial destructor}}
37 goto inner
; // expected-error{{cannot jump from this goto statement to its label}}
39 Y y2
; // expected-note{{jump bypasses variable with a non-trivial destructor}}
47 Z
operator=(const Z
&);