]> granicus.if.org Git - clang/commit
Correct multiversion unsupported target behavior, add a test.
authorErich Keane <erich.keane@intel.com>
Tue, 20 Feb 2018 18:44:50 +0000 (18:44 +0000)
committerErich Keane <erich.keane@intel.com>
Tue, 20 Feb 2018 18:44:50 +0000 (18:44 +0000)
commit3a759eff5fe3d817ed5d19a4a798c13786836f46
tree3cd9536b3daf26619d1f07987a9ca6c73689914b
parent3dbd54d2c49521c8ddc2c5999449782a9aa4eda5
Correct multiversion unsupported target behavior, add a test.

Multiversioning SEMA failed to set the declaration as invalid on unsupported
targets.  This patch does that.

Additionally, I noticed that there is no test to validate this error message.
This patch adds one, and uses 'mips' as the test architecture.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@325610 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/Sema/attr-target-unsupported.c [new file with mode: 0644]