
There were a few issues previously with the target attribute diagnostics implementation that lead to the attribute being added to the AST despite having an error in it. This patch changes that, and adds a test to ensure it does not get added to the AST. Differential Revision: https://reviews.llvm.org/D43359 llvm-svn: 325364
6 lines
198 B
C
6 lines
198 B
C
// RUN: %clang_cc1 -triple x86_64-linux-gnu -ast-dump %s | FileCheck %s
|
|
|
|
int __attribute__((target("arch=hiss,arch=woof"))) pine_tree() { return 4; }
|
|
// CHECK-NOT: arch=hiss
|
|
// CHECK-NOT: arch=woof
|