>>501

bool flag;
void func(void)
{
while(flag) {
処理
}
}
この場合最適化でwhile(true)に置き換えられるが
volatileを付けるとwhile(flag)のままになる