================
@@ -0,0 +1,68 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+// Test that exclude_from_explicit_instantiation is warned if attached
+// on a non-template context or on a non-member entity.
+
+#define EXCLUDE_ATTR __attribute__((exclude_from_explicit_instantiation))
+
+struct C {
+ EXCLUDE_ATTR void fn_excluded();
+ // expected-warning@-1{{'exclude_from_explicit_instantiation' attribute
ignored on a non-template context}}
----------------
zmodem wrote:
Can you put the `// expected-warning`s directly on the line that they apply to?
That way it gets much easier to read, and you don't need to have the `@-1`.
https://github.com/llvm/llvm-project/pull/183514
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits