llvm-project/clang/test/Sema/attr-target-ast.c
Erich Keane 29636aaaa6 Clean up 'target' attribute diagnostics
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
2018-02-16 17:31:59 +00:00

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