We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be4c2b9 commit a42c5ceCopy full SHA for a42c5ce
lib/SILGen/SILGenFunction.h
@@ -1682,6 +1682,10 @@ class LLVM_LIBRARY_VISIBILITY SILGenFunction
1682
// No lowering support needed.
1683
}
1684
1685
+ void visitPoundDiagnosticDecl(PoundDiagnosticDecl *D) {
1686
+ // No lowering support needed.
1687
+ }
1688
+
1689
void visitVarDecl(VarDecl *D);
1690
1691
/// Emit an Initialization for a 'var' or 'let' decl in a pattern.
test/Sema/pound_diagnostics.swift
@@ -1,4 +1,5 @@
1
// RUN: %target-typecheck-verify-swift
2
+// RUN: %target-swift-frontend -c -verify %s -o /dev/null
3
4
#warning("this should be a warning") // expected-warning {{this should be a warning}}
5
#error("this should be an error") // expected-error {{this should be an error}}
0 commit comments