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 f1f9938 commit 611f21dCopy full SHA for 611f21d
test/IRGen/Inputs/atomic_bool.h
@@ -0,0 +1 @@
1
+typedef struct { _Atomic(_Bool) value; } MyAtomicBool;
test/IRGen/Inputs/module.modulemap
@@ -21,3 +21,8 @@ module AutolinkElfCPragmaTransitive {
21
module AutolinkModuleMapLink {
22
link "autolink-module-map-link"
23
}
24
+
25
+module AtomicBoolModule {
26
+ header "atomic_bool.h"
27
+ export *
28
+}
test/IRGen/atomic_bool.swift
@@ -0,0 +1,11 @@
+// RUN: not --crash %target-swift-emit-ir %s -I %S/Inputs
2
3
+import AtomicBoolModule
4
5
+public func f() -> MyAtomicBool {
6
+ return MyAtomicBool()
7
8
9
+public func g(_ b: MyAtomicBool) {
10
+ let _ = b
11
0 commit comments