summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-04-30 00:30:44 +0100
committerw0rp <devw0rp@gmail.com>2017-04-30 00:31:52 +0100
commita6cadaabef9ed9afa7c75bedd3102bf526ac79f0 (patch)
tree05c4c755b118456ab98af474ae321b6f0042a581 /test
parent2c7d14809d5e143af89317461daadd12408bfbd5 (diff)
downloadale-a6cadaabef9ed9afa7c75bedd3102bf526ac79f0.zip
Fix #356 Don't complain about #pragma once in C++ headers
Diffstat (limited to 'test')
-rw-r--r--test/handler/test_gcc_handler.vader17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/handler/test_gcc_handler.vader b/test/handler/test_gcc_handler.vader
index 990df2c5..72b7c541 100644
--- a/test/handler/test_gcc_handler.vader
+++ b/test/handler/test_gcc_handler.vader
@@ -77,3 +77,20 @@ Execute(GCC versions should be parsed correctly):
\ 'This is free software; see the source for copying conditions. There is NO',
\ 'warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.',
\])
+
+Execute(The GCC handler shouldn't complain about #pragma once for headers):
+ silent file! test.h
+
+ AssertEqual
+ \ [],
+ \ ale#handlers#gcc#HandleGCCFormat(347, [
+ \ '<stdin>:1:1: warning: #pragma once in main file [enabled by default]',
+ \ ])
+
+ silent file! test.hpp
+
+ AssertEqual
+ \ [],
+ \ ale#handlers#gcc#HandleGCCFormat(347, [
+ \ '<stdin>:1:1: warning: #pragma once in main file [enabled by default]',
+ \ ])