diff clang/test/Sema/captured-statements.c @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900
parents 1d019706d866
children
line wrap: on
line diff
--- a/clang/test/Sema/captured-statements.c	Wed Jul 21 10:27:27 2021 +0900
+++ b/clang/test/Sema/captured-statements.c	Wed Nov 09 17:45:10 2022 +0900
@@ -1,6 +1,6 @@
 // RUN: %clang_cc1 -fsyntax-only -verify %s -fblocks
 
-void test_gotos() {
+void test_gotos(void) {
   goto L1; // expected-error {{use of undeclared label 'L1'}}
   goto L3; // OK
   #pragma clang __debug captured
@@ -13,7 +13,7 @@
 L3: ;
 }
 
-void test_break_continue() {
+void test_break_continue(void) {
   while (1) {
     #pragma clang __debug captured
     {
@@ -23,7 +23,7 @@
   }
 }
 
-void test_return() {
+void test_return(void) {
   while (1) {
     #pragma clang __debug captured
     {
@@ -32,7 +32,7 @@
   }
 }
 
-void test_nest() {
+void test_nest(void) {
   int x;
   #pragma clang __debug captured
   {
@@ -48,7 +48,7 @@
   }
 }
 
-void test_nest_block() {
+void test_nest_block(void) {
   __block int x; // expected-note {{'x' declared here}}
   int y;
   ^{