[PATCH] D78572: [Clang][Sema] Capturing section type conflicts on #pragma clang section
Reid Kleckner via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 23 10:48:21 PDT 2020
rnk accepted this revision.
rnk added a comment.
This revision is now accepted and ready to land.
Seems reasonable.
================
Comment at: clang/test/Sema/pragma-clang-section.c:2
// RUN: %clang_cc1 -fsyntax-only -verify %s -triple arm-none-eabi
-#pragma clang section bss="mybss.1" data="mydata.1" rodata="myrodata.1" text="mytext.1"
+#pragma clang section bss = "mybss.1" data = "mydata.1" rodata = "myrodata.1" text = "mytext.1" // expected-note {{#pragma entered here}} expected-note {{#pragma entered here}}
#pragma clang section bss="" data="" rodata="" text=""
----------------
You can use `expected-note 2 {{#pragma entered here]}` to expect the same diagnostic twice.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78572/new/
https://reviews.llvm.org/D78572
More information about the cfe-commits
mailing list