'identifier': 'allocate( )'는 정적 익스텐트의 데이터 항목에만 유효합니다.
비고
구문은 __declspec( allocate()) 정적 데이터에만 사용할 수 있습니다.
Example
다음 예제에서는 C2479를 생성합니다.
// C2479.cpp
// compile with: /c
#pragma section("mycode", read)
static __declspec(allocate("mycode")) void DoNothing() {} // C2479
__declspec(allocate("mycode")) int i = 0; // OK