summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/implicit-int.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-22 05:27:59 +0000
committerChris Lattner <sabre@nondot.org>2009-04-22 05:27:59 +0000
commitdc00437fa0d34af1b8a7df70aa10b91a57832321 (patch)
treefc272557e64e0d3c8473935069032ace2fe85a47 /clang/test/Sema/implicit-int.c
parent9dae596dc1a3c7203766398d5f909096adcac470 (diff)
downloadbcm5719-llvm-dc00437fa0d34af1b8a7df70aa10b91a57832321.tar.gz
bcm5719-llvm-dc00437fa0d34af1b8a7df70aa10b91a57832321.zip
change implicit int warnings to point to the identifier, not the
start of the declspec. The fixit still goes there, and we underline the declspec. This helps when the start of the declspec came from a macro that expanded from a system header. For example, we now produce: t.c:2:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static x; ~~~~~~ ^ llvm-svn: 69777
Diffstat (limited to 'clang/test/Sema/implicit-int.c')
-rw-r--r--clang/test/Sema/implicit-int.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/Sema/implicit-int.c b/clang/test/Sema/implicit-int.c
index 90fe607e120..04b27a8f0ea 100644
--- a/clang/test/Sema/implicit-int.c
+++ b/clang/test/Sema/implicit-int.c
@@ -23,8 +23,7 @@ h19_insline(n) // expected-warning {{parameter 'n' was not declared, defaulting
}
struct foo {
- __extension__ __attribute__((packed)) // expected-warning {{type specifier missing, defaults to 'int'}}
- x : 4;
+ __extension__ __attribute__((packed)) x : 4; // expected-warning {{type specifier missing, defaults to 'int'}}
};
OpenPOWER on IntegriCloud