Lang Hames | a930e71 | 2012-10-21 01:10:01 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | |||||
3 | void f1(void) { | ||||
4 | int x = 0; | ||||
Lang Hames | 720ae09 | 2012-10-21 19:56:13 +0000 | [diff] [blame] | 5 | /* expected-error@+1 {{'#pragma fp_contract' should only appear at file scope or at the start of a compound expression}} */ |
6 | #pragma STDC FP_CONTRACT ON | ||||
Lang Hames | a930e71 | 2012-10-21 01:10:01 +0000 | [diff] [blame] | 7 | } |