Abraxas/ECS C++ Home  Table of Contents 

Module - 52.html

ABRAXAS SOFTWARE - CodeCheck ECS C++ Test-Suite ECS C++.

ECS C++-C Test Suite for Module - 52.cpp

/*

52. Label closing braces in highly nested control structure.

*/

// BAD




Function Name: foo1()

foo1() {
	if ( 1 ) {
		if ( 2 ) {
			if ( 3 ) {
			}
		}
	}
}

// GOOD




Function Name: foo2()

foo2() {
	if ( 1 ) {
		if ( 2 ) {
			if ( 3 ) {
			}	// good
		}		// good
	}			// good
}

Abraxas/ECS C++ Home  Table of Contents

ABRAXAS SOFTWARE - CodeCheck ECS C++ Test-Suite ECS C++