summaryrefslogtreecommitdiff
path: root/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
commit3f84ad22acc25353a47ee88f55ab05dffef5d9a9 (patch)
tree0866ac903b6015d0e76e86f8ddd1857c593defa4 /test/Sema/implicit-int.c
parent1e27472262b50097e0292b4352810e168df2eaa7 (diff)
downloadclang-3f84ad22acc25353a47ee88f55ab05dffef5d9a9.tar.gz
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; ~~~~~~ ^ git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/implicit-int.c')
-rw-r--r--test/Sema/implicit-int.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/Sema/implicit-int.c b/test/Sema/implicit-int.c
index 90fe607e12..04b27a8f0e 100644
--- a/test/Sema/implicit-int.c
+++ b/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'}}
};