34 lines · c
1/* Test pragma region directive from2 http://msdn.microsoft.com/en-us/library/b6xkz944(v=vs.80).aspx */3 4// Editor-only pragma, just skipped by compiler.5// Syntax:6// #pragma region optional name7// #pragma endregion optional comment8//9// RUN: %clang_cc1 -fsyntax-only -verify -Wall -fms-extensions %s10 11#pragma region12/* inner space */13#pragma endregion14 15#pragma region long name16/* inner space */17void foo(void){}18#pragma endregion long comment19 20void inner(void);21 22__pragma(region) // no sense, but ignored23_Pragma("region")// ditto24 25#pragma region2 // expected-warning {{unknown pragma ignored}}26 27#pragma region one28#pragma region inner29//#pragma endregion inner30 31#pragma endregion end32 33// {{unclosed pragma region}} - region mismatches is not detected yet34