-o /dev/null #warning("this should be a warning”) // expected-warning {{this should be a warning}} // expected-error@+1 {{this should be an error}} #error("this should be an error”) #if false #error("this shouldn't cause any errors") #endif // expected-error@+1 {{expected string literal in #error directive}}{{8-8="}}{{16-16="}} #error(test 123) test/Sema/pound_diagnostics.swift
-o /dev/null #warning("this should be a warning”) // expected-warning {{this should be a warning}} // expected-error@+1 {{this should be an error}} #error("this should be an error”) #if false #error("this shouldn't cause any errors") #endif // expected-error@+1 {{expected string literal in #error directive}}{{8-8="}}{{16-16="}} #error(test 123) test/Sema/pound_diagnostics.swift
-o /dev/null #warning("this should be a warning”) // expected-warning {{this should be a warning}} // expected-error@+1 {{this should be an error}} #error("this should be an error”) #if false #error("this shouldn't cause any errors") #endif // expected-error@+1 {{expected string literal in #error directive}}{{8-8="}}{{16-16="}} #error(test 123) test/Sema/pound_diagnostics.swift
-o /dev/null #warning("this should be a warning”) // expected-warning {{this should be a warning}} // expected-error@+1 {{this should be an error}} #error("this should be an error”) #if false #error("this shouldn't cause any errors") #endif // expected-error@+1 {{expected string literal in #error directive}}{{8-8="}}{{16-16="}} #error(test 123) test/Sema/pound_diagnostics.swift
-o /dev/null #warning("this should be a warning”) // expected-warning {{this should be a warning}} // expected-error@+1 {{this should be an error}} #error("this should be an error”) #if false #error("this shouldn't cause any errors") #endif // expected-error@+1 {{expected string literal in #error directive}}{{8-8="}}{{16-16="}} #error(test 123) test/Sema/pound_diagnostics.swift
-o /dev/null #warning("this should be a warning”) // expected-warning {{this should be a warning}} // expected-error@+1 {{this should be an error}} #error("this should be an error”) #if false #error("this shouldn't cause any errors") #endif // expected-error@+1 {{expected string literal in #error directive}}{{8-8="}}{{16-16="}} #error(test 123) test/Sema/pound_diagnostics.swift