Compiler Error C3295
'#pragma pragma' can only be used at global or namespace scope
Some pragmas cannot be used in a function. See Pragma Directives and the __Pragma Keyword for more information.
Example
The following sample generates C3295.
// C3295.cpp
int main() {
#pragma managed // C3295
}