1; RUN: llvm-rc /FO %t -- %p/Inputs/memoryflags.rc 2; RUN: llvm-readobj %t | FileCheck %s 3 4; CHECK: Resource type (int): CURSOR (ID 1) 5; CHECK-NEXT: Resource name (int): 1 6; CHECK-NEXT: Data version: 0 7; CHECK-NEXT: Memory flags: 0x1050 8; CHECK: Resource type (int): GROUP_CURSOR (ID 12) 9; CHECK-NEXT: Resource name (int): 1 10; CHECK-NEXT: Data version: 0 11; CHECK-NEXT: Memory flags: 0x1050 12; CHECK: Resource type (int): CURSOR (ID 1) 13; CHECK-NEXT: Resource name (int): 2 14; CHECK-NEXT: Data version: 0 15; CHECK-NEXT: Memory flags: 0x1010 16; CHECK: Resource type (int): GROUP_CURSOR (ID 12) 17; CHECK-NEXT: Resource name (int): 2 18; CHECK-NEXT: Data version: 0 19; CHECK-NEXT: Memory flags: 0x1030 20; CHECK: Resource type (int): CURSOR (ID 1) 21; CHECK-NEXT: Resource name (int): 3 22; CHECK-NEXT: Data version: 0 23; CHECK-NEXT: Memory flags: 0x0 24; CHECK: Resource type (int): GROUP_CURSOR (ID 12) 25; CHECK-NEXT: Resource name (int): 3 26; CHECK-NEXT: Data version: 0 27; CHECK-NEXT: Memory flags: 0x1030 28; CHECK: Resource type (int): CURSOR (ID 1) 29; CHECK-NEXT: Resource name (int): 4 30; CHECK-NEXT: Data version: 0 31; CHECK-NEXT: Memory flags: 0x1010 32; CHECK: Resource type (int): GROUP_CURSOR (ID 12) 33; CHECK-NEXT: Resource name (int): 4 34; CHECK-NEXT: Data version: 0 35; CHECK-NEXT: Memory flags: 0x1030 36; CHECK: Resource type (int): CURSOR (ID 1) 37; CHECK-NEXT: Resource name (int): 5 38; CHECK-NEXT: Data version: 0 39; CHECK-NEXT: Memory flags: 0x1030 40; CHECK: Resource type (int): GROUP_CURSOR (ID 12) 41; CHECK-NEXT: Resource name (int): 5 42; CHECK-NEXT: Data version: 0 43; CHECK-NEXT: Memory flags: 0x1030 44; CHECK: Resource type (int): CURSOR (ID 1) 45; CHECK-NEXT: Resource name (int): 6 46; CHECK-NEXT: Data version: 0 47; CHECK-NEXT: Memory flags: 0x1030 48; CHECK: Resource type (int): GROUP_CURSOR (ID 12) 49; CHECK-NEXT: Resource name (int): 6 50; CHECK-NEXT: Data version: 0 51; CHECK-NEXT: Memory flags: 0x1030 52; CHECK: Resource type (int): CURSOR (ID 1) 53; CHECK-NEXT: Resource name (int): 7 54; CHECK-NEXT: Data version: 0 55; CHECK-NEXT: Memory flags: 0x10 56; CHECK: Resource type (int): GROUP_CURSOR (ID 12) 57; CHECK-NEXT: Resource name (int): 7 58; CHECK-NEXT: Data version: 0 59; CHECK-NEXT: Memory flags: 0x1030 60; CHECK: Resource type (int): CURSOR (ID 1) 61; CHECK-NEXT: Resource name (int): 8 62; CHECK-NEXT: Data version: 0 63; CHECK-NEXT: Memory flags: 0x1030 64; CHECK: Resource type (int): GROUP_CURSOR (ID 12) 65; CHECK-NEXT: Resource name (int): 8 66; CHECK-NEXT: Data version: 0 67; CHECK-NEXT: Memory flags: 0x1030 68; CHECK: Resource type (int): CURSOR (ID 1) 69; CHECK-NEXT: Resource name (int): 9 70; CHECK-NEXT: Data version: 0 71; CHECK-NEXT: Memory flags: 0x10 72; CHECK: Resource type (int): GROUP_CURSOR (ID 12) 73; CHECK-NEXT: Resource name (int): 9 74; CHECK-NEXT: Data version: 0 75; CHECK-NEXT: Memory flags: 0x1030 76; CHECK: Resource type (int): ICON (ID 3) 77; CHECK-NEXT: Resource name (int): 10 78; CHECK-NEXT: Data version: 0 79; CHECK-NEXT: Memory flags: 0x1050 80; CHECK: Resource type (int): ICON (ID 3) 81; CHECK-NEXT: Resource name (int): 11 82; CHECK-NEXT: Data version: 0 83; CHECK-NEXT: Memory flags: 0x1050 84; CHECK: Resource type (int): ICON (ID 3) 85; CHECK-NEXT: Resource name (int): 12 86; CHECK-NEXT: Data version: 0 87; CHECK-NEXT: Memory flags: 0x1050 88; CHECK: Resource type (int): ICON (ID 3) 89; CHECK-NEXT: Resource name (int): 13 90; CHECK-NEXT: Data version: 0 91; CHECK-NEXT: Memory flags: 0x1050 92; CHECK: Resource type (int): GROUP_ICON (ID 14) 93; CHECK-NEXT: Resource name (int): 10 94; CHECK-NEXT: Data version: 0 95; CHECK-NEXT: Memory flags: 0x1050 96; CHECK: Resource type (int): ICON (ID 3) 97; CHECK-NEXT: Resource name (int): 14 98; CHECK-NEXT: Data version: 0 99; CHECK-NEXT: Memory flags: 0x1010 100; CHECK: Resource type (int): ICON (ID 3) 101; CHECK-NEXT: Resource name (int): 15 102; CHECK-NEXT: Data version: 0 103; CHECK-NEXT: Memory flags: 0x1010 104; CHECK: Resource type (int): ICON (ID 3) 105; CHECK-NEXT: Resource name (int): 16 106; CHECK-NEXT: Data version: 0 107; CHECK-NEXT: Memory flags: 0x1010 108; CHECK: Resource type (int): ICON (ID 3) 109; CHECK-NEXT: Resource name (int): 17 110; CHECK-NEXT: Data version: 0 111; CHECK-NEXT: Memory flags: 0x1010 112; CHECK: Resource type (int): GROUP_ICON (ID 14) 113; CHECK-NEXT: Resource name (int): 11 114; CHECK-NEXT: Data version: 0 115; CHECK-NEXT: Memory flags: 0x1030 116; CHECK: Resource type (int): ICON (ID 3) 117; CHECK-NEXT: Resource name (int): 18 118; CHECK-NEXT: Data version: 0 119; CHECK-NEXT: Memory flags: 0x0 120; CHECK: Resource type (int): ICON (ID 3) 121; CHECK-NEXT: Resource name (int): 19 122; CHECK-NEXT: Data version: 0 123; CHECK-NEXT: Memory flags: 0x0 124; CHECK: Resource type (int): ICON (ID 3) 125; CHECK-NEXT: Resource name (int): 20 126; CHECK-NEXT: Data version: 0 127; CHECK-NEXT: Memory flags: 0x0 128; CHECK: Resource type (int): ICON (ID 3) 129; CHECK-NEXT: Resource name (int): 21 130; CHECK-NEXT: Data version: 0 131; CHECK-NEXT: Memory flags: 0x0 132; CHECK: Resource type (int): GROUP_ICON (ID 14) 133; CHECK-NEXT: Resource name (int): 12 134; CHECK-NEXT: Data version: 0 135; CHECK-NEXT: Memory flags: 0x1030 136; CHECK: Resource type (int): ICON (ID 3) 137; CHECK-NEXT: Resource name (int): 22 138; CHECK-NEXT: Data version: 0 139; CHECK-NEXT: Memory flags: 0x1010 140; CHECK: Resource type (int): ICON (ID 3) 141; CHECK-NEXT: Resource name (int): 23 142; CHECK-NEXT: Data version: 0 143; CHECK-NEXT: Memory flags: 0x1010 144; CHECK: Resource type (int): ICON (ID 3) 145; CHECK-NEXT: Resource name (int): 24 146; CHECK-NEXT: Data version: 0 147; CHECK-NEXT: Memory flags: 0x1010 148; CHECK: Resource type (int): ICON (ID 3) 149; CHECK-NEXT: Resource name (int): 25 150; CHECK-NEXT: Data version: 0 151; CHECK-NEXT: Memory flags: 0x1010 152; CHECK: Resource type (int): GROUP_ICON (ID 14) 153; CHECK-NEXT: Resource name (int): 13 154; CHECK-NEXT: Data version: 0 155; CHECK-NEXT: Memory flags: 0x1030 156; CHECK: Resource type (int): ICON (ID 3) 157; CHECK-NEXT: Resource name (int): 26 158; CHECK-NEXT: Data version: 0 159; CHECK-NEXT: Memory flags: 0x1030 160; CHECK: Resource type (int): ICON (ID 3) 161; CHECK-NEXT: Resource name (int): 27 162; CHECK-NEXT: Data version: 0 163; CHECK-NEXT: Memory flags: 0x1030 164; CHECK: Resource type (int): ICON (ID 3) 165; CHECK-NEXT: Resource name (int): 28 166; CHECK-NEXT: Data version: 0 167; CHECK-NEXT: Memory flags: 0x1030 168; CHECK: Resource type (int): ICON (ID 3) 169; CHECK-NEXT: Resource name (int): 29 170; CHECK-NEXT: Data version: 0 171; CHECK-NEXT: Memory flags: 0x1030 172; CHECK: Resource type (int): GROUP_ICON (ID 14) 173; CHECK-NEXT: Resource name (int): 14 174; CHECK-NEXT: Data version: 0 175; CHECK-NEXT: Memory flags: 0x1030 176; CHECK: Resource type (int): ICON (ID 3) 177; CHECK-NEXT: Resource name (int): 30 178; CHECK-NEXT: Data version: 0 179; CHECK-NEXT: Memory flags: 0x1030 180; CHECK: Resource type (int): ICON (ID 3) 181; CHECK-NEXT: Resource name (int): 31 182; CHECK-NEXT: Data version: 0 183; CHECK-NEXT: Memory flags: 0x1030 184; CHECK: Resource type (int): ICON (ID 3) 185; CHECK-NEXT: Resource name (int): 32 186; CHECK-NEXT: Data version: 0 187; CHECK-NEXT: Memory flags: 0x1030 188; CHECK: Resource type (int): ICON (ID 3) 189; CHECK-NEXT: Resource name (int): 33 190; CHECK-NEXT: Data version: 0 191; CHECK-NEXT: Memory flags: 0x1030 192; CHECK: Resource type (int): GROUP_ICON (ID 14) 193; CHECK-NEXT: Resource name (int): 15 194; CHECK-NEXT: Data version: 0 195; CHECK-NEXT: Memory flags: 0x1030 196; CHECK: Resource type (int): ICON (ID 3) 197; CHECK-NEXT: Resource name (int): 34 198; CHECK-NEXT: Data version: 0 199; CHECK-NEXT: Memory flags: 0x10 200; CHECK: Resource type (int): ICON (ID 3) 201; CHECK-NEXT: Resource name (int): 35 202; CHECK-NEXT: Data version: 0 203; CHECK-NEXT: Memory flags: 0x10 204; CHECK: Resource type (int): ICON (ID 3) 205; CHECK-NEXT: Resource name (int): 36 206; CHECK-NEXT: Data version: 0 207; CHECK-NEXT: Memory flags: 0x10 208; CHECK: Resource type (int): ICON (ID 3) 209; CHECK-NEXT: Resource name (int): 37 210; CHECK-NEXT: Data version: 0 211; CHECK-NEXT: Memory flags: 0x10 212; CHECK: Resource type (int): GROUP_ICON (ID 14) 213; CHECK-NEXT: Resource name (int): 16 214; CHECK-NEXT: Data version: 0 215; CHECK-NEXT: Memory flags: 0x1030 216; CHECK: Resource type (int): ICON (ID 3) 217; CHECK-NEXT: Resource name (int): 38 218; CHECK-NEXT: Data version: 0 219; CHECK-NEXT: Memory flags: 0x1030 220; CHECK: Resource type (int): ICON (ID 3) 221; CHECK-NEXT: Resource name (int): 39 222; CHECK-NEXT: Data version: 0 223; CHECK-NEXT: Memory flags: 0x1030 224; CHECK: Resource type (int): ICON (ID 3) 225; CHECK-NEXT: Resource name (int): 40 226; CHECK-NEXT: Data version: 0 227; CHECK-NEXT: Memory flags: 0x1030 228; CHECK: Resource type (int): ICON (ID 3) 229; CHECK-NEXT: Resource name (int): 41 230; CHECK-NEXT: Data version: 0 231; CHECK-NEXT: Memory flags: 0x1030 232; CHECK: Resource type (int): GROUP_ICON (ID 14) 233; CHECK-NEXT: Resource name (int): 17 234; CHECK-NEXT: Data version: 0 235; CHECK-NEXT: Memory flags: 0x1030 236; CHECK: Resource type (int): ICON (ID 3) 237; CHECK-NEXT: Resource name (int): 42 238; CHECK-NEXT: Data version: 0 239; CHECK-NEXT: Memory flags: 0x10 240; CHECK: Resource type (int): ICON (ID 3) 241; CHECK-NEXT: Resource name (int): 43 242; CHECK-NEXT: Data version: 0 243; CHECK-NEXT: Memory flags: 0x10 244; CHECK: Resource type (int): ICON (ID 3) 245; CHECK-NEXT: Resource name (int): 44 246; CHECK-NEXT: Data version: 0 247; CHECK-NEXT: Memory flags: 0x10 248; CHECK: Resource type (int): ICON (ID 3) 249; CHECK-NEXT: Resource name (int): 45 250; CHECK-NEXT: Data version: 0 251; CHECK-NEXT: Memory flags: 0x10 252; CHECK: Resource type (int): GROUP_ICON (ID 14) 253; CHECK-NEXT: Resource name (int): 18 254; CHECK-NEXT: Data version: 0 255; CHECK-NEXT: Memory flags: 0x1030 256; CHECK: Resource type (int): BITMAP (ID 2) 257; CHECK-NEXT: Resource name (int): 19 258; CHECK-NEXT: Data version: 0 259; CHECK-NEXT: Memory flags: 0x70 260; CHECK: Resource type (int): BITMAP (ID 2) 261; CHECK-NEXT: Resource name (int): 20 262; CHECK-NEXT: Data version: 0 263; CHECK-NEXT: Memory flags: 0x30 264; CHECK: Resource type (int): BITMAP (ID 2) 265; CHECK-NEXT: Resource name (int): 21 266; CHECK-NEXT: Data version: 0 267; CHECK-NEXT: Memory flags: 0x20 268; CHECK: Resource type (int): BITMAP (ID 2) 269; CHECK-NEXT: Resource name (int): 22 270; CHECK-NEXT: Data version: 0 271; CHECK-NEXT: Memory flags: 0x30 272; CHECK: Resource type (int): BITMAP (ID 2) 273; CHECK-NEXT: Resource name (int): 23 274; CHECK-NEXT: Data version: 0 275; CHECK-NEXT: Memory flags: 0x1030 276; CHECK: Resource type (int): BITMAP (ID 2) 277; CHECK-NEXT: Resource name (int): 24 278; CHECK-NEXT: Data version: 0 279; CHECK-NEXT: Memory flags: 0x30 280; CHECK: Resource type (int): BITMAP (ID 2) 281; CHECK-NEXT: Resource name (int): 25 282; CHECK-NEXT: Data version: 0 283; CHECK-NEXT: Memory flags: 0x10 284; CHECK: Resource type (int): BITMAP (ID 2) 285; CHECK-NEXT: Resource name (int): 26 286; CHECK-NEXT: Data version: 0 287; CHECK-NEXT: Memory flags: 0x30 288; CHECK: Resource type (int): BITMAP (ID 2) 289; CHECK-NEXT: Resource name (int): 27 290; CHECK-NEXT: Data version: 0 291; CHECK-NEXT: Memory flags: 0x10 292; CHECK: Resource type (int): BITMAP (ID 2) 293; CHECK-NEXT: Resource name (int): 28 294; CHECK-NEXT: Data version: 0 295; CHECK-NEXT: Memory flags: 0x0 296; CHECK: Resource type (int): BITMAP (ID 2) 297; CHECK-NEXT: Resource name (int): 29 298; CHECK-NEXT: Data version: 0 299; CHECK-NEXT: Memory flags: 0x0 300; CHECK: Resource type (int): BITMAP (ID 2) 301; CHECK-NEXT: Resource name (int): 30 302; CHECK-NEXT: Data version: 0 303; CHECK-NEXT: Memory flags: 0x20 304; CHECK: Resource type (int): BITMAP (ID 2) 305; CHECK-NEXT: Resource name (int): 31 306; CHECK-NEXT: Data version: 0 307; CHECK-NEXT: Memory flags: 0x10 308; CHECK: Resource type (int): BITMAP (ID 2) 309; CHECK-NEXT: Resource name (int): 32 310; CHECK-NEXT: Data version: 0 311; CHECK-NEXT: Memory flags: 0x1030 312; CHECK: Resource type (int): BITMAP (ID 2) 313; CHECK-NEXT: Resource name (int): 33 314; CHECK-NEXT: Data version: 0 315; CHECK-NEXT: Memory flags: 0x20 316; CHECK: Resource type (int): BITMAP (ID 2) 317; CHECK-NEXT: Resource name (int): 34 318; CHECK-NEXT: Data version: 0 319; CHECK-NEXT: Memory flags: 0x20 320; CHECK: Resource type (int): BITMAP (ID 2) 321; CHECK-NEXT: Resource name (int): 35 322; CHECK-NEXT: Data version: 0 323; CHECK-NEXT: Memory flags: 0x1030 324