1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
3 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
10 int test_ptr10034(int argc
, char **argv
)
21 for (int i
= 0; i
< argc
; ++i
)
34 goto end
; // expected-error{{cannot jump from this goto statement to its label}}
35 Y y
; // expected-note{{jump bypasses variable with a non-trivial destructor}}
41 Z
operator=(const Z
&);
46 #if __cplusplus <= 199711L
47 // expected-error@-2 {{cannot jump from this goto statement to its label}}
51 #if __cplusplus <= 199711L
52 // expected-note@-2 {{jump bypasses initialization of non-POD variable}}